-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
Just pulled from master and run specs. Huge amounts of them appear to be failing, all for the same reason. For example:
185) Mongoid::Persistence::Atomic::Inc#inc when incrementing a field with a value persists the changes Failure/Error: Person.create(:ssn => "777-66-1010", :age => 100) NoMethodError: super called outside of method # ./spec/../lib/mongoid/callbacks.rb:43 # ./spec/../lib/mongoid/callbacks.rb:68:in `call' # ./spec/../lib/mongoid/callbacks.rb:68:in `run_cascading_callbacks' # ./spec/../lib/mongoid/callbacks.rb:42:in `run_callbacks' # ./spec/../lib/mongoid/document.rb:135:in `initialize' # ./spec/../lib/mongoid/threaded/lifecycle.rb:84:in `_building' # ./spec/../lib/mongoid/document.rb:126:in `initialize' # ./spec/../lib/mongoid/persistence.rb:177:in `new' # ./spec/../lib/mongoid/persistence.rb:177:in `create' # ./spec/../lib/mongoid/threaded/lifecycle.rb:173:in `_creating' # ./spec/../lib/mongoid/persistence.rb:176:in `create' # ./spec/functional/mongoid/persistence/atomic/inc_spec.rb:12 # ./spec/functional/mongoid/persistence/atomic/inc_spec.rb:41
Ruby 1.9.3-p0 on Ubuntu 10.04 64bit with a new mongoid gemset bundle installed using mongoid's Gemfile.
I see that this is passing on Travis CI but I have no idea why it would be failing on my machine