Skip to content

Commit 649d241

Browse files
committed
Merge pull request #210 from u2/spec_warning
Using the `raise_error` matcher with providing a specific error
2 parents 3581e1b + be28c6b commit 649d241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/grape_entity/entity_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ class Parent < Person
11331133
context 'without safe option' do
11341134
it 'throws an exception when an attribute is not found on the object' do
11351135
fresh_class.expose :name, :nonexistent_attribute
1136-
expect { fresh_class.new(model).serializable_hash }.to raise_error
1136+
expect { fresh_class.new(model).serializable_hash }.to raise_error NoMethodError
11371137
end
11381138

11391139
it "exposes attributes that don't exist on the object only when they are generated by a block" do

0 commit comments

Comments
 (0)