Skip to content

Instantly share code, notes, and snippets.

View yfeldblum's full-sized avatar

Jay Feldblum yfeldblum

  • Meta
  • San Jose, CA
View GitHub Profile
FF
Failures:
1) Widget the object itself attributes
Failure/Error: its(:attributes) { should_not include("level") }
expected {"_id"=>BSON::ObjectId('4e8081eeb2bc073bf9000001'), "level"=>nil} not to include "level"
Diff:
@@ -1,2 +1,2 @@
@yfeldblum
yfeldblum / rspec-spec
Created September 25, 2011 21:55
attribute_will_change! in mongoid-2.3 and earlier
.....FF....FF
Failures:
1) Widget without control changes
Failure/Error: its(:changes) { should include("ferocious") }
expected {} to include "ferocious"
Diff:
@@ -1,2 +1,2 @@
-ferocious
@yfeldblum
yfeldblum / run
Created September 19, 2011 21:42
Notes:
mongoid: https://github.com/mongoid/mongoid/commit/15ac280c37ca1f5bcdd517a368bb0735d2806321 (master)