Commit 099e2742 authored by Robert Speicher's avatar Robert Speicher

Call the correct method in the BlocksJsonSerialization spec

parent 3e4b45fc
...@@ -6,7 +6,7 @@ describe BlocksJsonSerialization do ...@@ -6,7 +6,7 @@ describe BlocksJsonSerialization do
end end
it 'blocks as_json' do it 'blocks as_json' do
expect { DummyModel.new.to_json } expect { DummyModel.new.as_json }
.to raise_error(described_class::JsonSerializationError, /DummyModel/) .to raise_error(described_class::JsonSerializationError, /DummyModel/)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment