Rake test: NoMethodError: undefined method `each 'for nil: NilClass

I keep getting this error and can't figure out the problem. Since the whole stack has no code whatsoever. The only hint I have is that it started after a git merge.

Here is the error column, please let me know if you have any hints. Thanks to

 NoMethodError: undefined method `each' for nil:NilClass
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/ac
tion_controller/test_case.rb:58:in `teardown_subscriptions'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/callbacks.rb:432:in `block in make_lambda'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/callbacks.rb:263:in `call'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/callbacks.rb:263:in `block in simple'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/callbacks.rb:506:in `call'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/callbacks.rb:506:in `block in call'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/callbacks.rb:506:in `each'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/callbacks.rb:506:in `call'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/callbacks.rb:92:in `_run_callbacks'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/callbacks.rb:776:in `_run_teardown_callbacks'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/callbacks.rb:81:in `run_callbacks'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-4.2.1/lib
/active_support/testing/setup_and_teardown.rb:45:in `after_teardown'
    c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.2.1/lib/
active_record/fixtures.rb:829:in `after_teardown'

      

+3


source to share


1 answer


One of the model checks did not fire when loading the fixtures. This validation error was not thrown and test cases failed with message "NoMethodError: undefined method" every "for nil: NilClass



+1


source







All Articles