On Sun, Jan 2, 2011 at 10:20 PM, Jim Morris <wolfma...@gmail.com> wrote: > I forgot to mention that I did get a deprecation warning from rspec- > cells (they haven't updated it yet), but I fixed it by doing what the > deprecation warning said. I don't think that has anything to do with > the error I am getting though.
I didn't realize other libs were using it. Now that I know they are I may consider reversing the deprecation, though I'm not convinced it's really the best API, so I'll have to give that some thought. That aside, the commit that made that method obsolete within rspec-rails was: https://github.com/rspec/rspec-rails/commit/fc5cdbb603f0e66f9f3d19a0a60a775e124fb218 If you have some time to investigate, please see if reversing that commit solves the problem. Should point us in the right direction. > > On Jan 2, 7:46 pm, David Chelimsky <dchelim...@gmail.com> wrote: >> On Sun, Jan 2, 2011 at 9:09 PM, Jim Morris <wolfma...@gmail.com> wrote: >> > I just upgraded from 2.3.1 and I now get this error on all my specs... >> > Nothing else changed and the Upgrade.md does not indicate any backward >> > compatibilities unless I missed something. >> >> > (in /home/morris/work/ruby/rails3/wolfmanblog) >> > /opt/ruby-enterprise-1.8.7-2010.02/bin/ruby -S bundle exec rspec ./ >> > spec/controllers/posts_controller_spec.rb >> > [sequel] Setting up the "test" environment: >> > /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > actionpack-3.0.3/lib/action_controller/test_case.rb:10: undefined >> > method `setup' for #<Class:0xa24723c> (NoMethodError) >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > activesupport-3.0.3/lib/active_support/concern.rb:52:in `class_eval' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > activesupport-3.0.3/lib/active_support/concern.rb:52:in >> > `append_features' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > actionpack-3.0.3/lib/action_controller/test_case.rb:439:in `include' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > actionpack-3.0.3/lib/action_controller/test_case.rb:439 >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > activesupport-3.0.3/lib/active_support/concern.rb:52:in `class_eval' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > activesupport-3.0.3/lib/active_support/concern.rb:52:in >> > `append_features' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > activesupport-3.0.3/lib/active_support/concern.rb:48:in `include' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > activesupport-3.0.3/lib/active_support/concern.rb:48:in `send' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > activesupport-3.0.3/lib/active_support/concern.rb:48:in >> > `append_features' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > activesupport-3.0.3/lib/active_support/concern.rb:48:in `each' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > activesupport-3.0.3/lib/active_support/concern.rb:48:in >> > `append_features' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/configuration.rb:372:in `include' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/configuration.rb:372:in `send' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/configuration.rb:372:in >> > `configure_group' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/configuration.rb:369:in `each' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/configuration.rb:369:in >> > `configure_group' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/world.rb:35:in `configure_group' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/example_group.rb:153:in `set_it_up' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/example_group.rb:130:in `subclass' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/example_group.rb:118:in `describe' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/extensions/object.rb:6:in `describe' >> > from /home/morris/work/ruby/rails3/wolfmanblog/spec/ >> > controllers/posts_controller_spec.rb:3 >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/configuration.rb:387:in `load' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/configuration.rb:387:in >> > `load_spec_files' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/configuration.rb:387:in `map' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/configuration.rb:387:in >> > `load_spec_files' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/command_line.rb:18:in `run' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/runner.rb:55:in `run_in_process' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/runner.rb:46:in `run' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/ >> > rspec-core-2.4.0/lib/rspec/core/runner.rb:10:in `autorun' >> > from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/bin/ >> > rspec:19 >> > rake aborted! >> > ruby -S bundle exec rspec ./spec/controllers/posts_controller_spec.rb >> > failed >> >> I'm not seeing this in any of my apps. Seems like a configuration or >> load order problem. Can you post your Gemfile and spec/spec_helper.rb? >> _______________________________________________ >> rspec-users mailing list >> rspec-us...@rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users