Permalink
Browse files

Use #to when expecting change

  • Loading branch information...
1 parent 48533d5 commit d5c5f830f4b77aa4fc30030c2cced1d749a28c06 Travis Anderson committed with Hashrocket Workstation Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/integration_spec.rb
View
@@ -299,7 +299,7 @@
after { Mongoid.allow_dynamic_fields = true }
it "raises NoMethodError for mongoid_dynamic_field=" do
- expect { Fabricate(:special_author) }.should raise_error(NoMethodError, /mongoid_dynamic_field=/)
+ expect { Fabricate(:special_author) }.to raise_error(NoMethodError, /mongoid_dynamic_field=/)
end
end
end

0 comments on commit d5c5f83

Please sign in to comment.