We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3581e1b + be28c6b commit 649d241Copy full SHA for 649d241
spec/grape_entity/entity_spec.rb
@@ -1133,7 +1133,7 @@ class Parent < Person
1133
context 'without safe option' do
1134
it 'throws an exception when an attribute is not found on the object' do
1135
fresh_class.expose :name, :nonexistent_attribute
1136
- expect { fresh_class.new(model).serializable_hash }.to raise_error
+ expect { fresh_class.new(model).serializable_hash }.to raise_error NoMethodError
1137
end
1138
1139
it "exposes attributes that don't exist on the object only when they are generated by a block" do
0 commit comments