[rspec-users] RSpec 2: what should I replace 'params_from' with?

2010-06-24 Thread Ivo Wever
Hey, I'm migrating an app to Rails 3 + RSpec 2 and, as expected, a number of specs broke. Unfortunately, I can't really find how to fix them. For instance, there is a spec: describe SessionsController do describe "route recognition" do it "should generate params from GET /login correctly" d

Re: [rspec-users] RSpec 2: what should I replace 'params_from' with?

2010-06-24 Thread Ivo Wever
Some additional info: * I'm on Rails 3 beta4 and RSpec 2 beta 13. * It doesn't matter whether I invoke the spec as bundle exec spec spec/controllers/sessions_controller_spec.rb or bundle exec rake spec -- Posted via http://www.ruby-forum.com/. __

Re: [rspec-users] RSpec 2: what should I replace 'params_from' with?

2010-06-24 Thread Ivo Wever
Hey, Thanks, that works fine and makes sense. Now there are also a few specs that assert the inverse direction: describe SessionsController do describe "route generation" do it "should route the destroy sessions action correctly" do route_for(:controller => 'sessions', :action => 'de

[rspec-users] Testing 'nil.should == something_not_nil' fails

2010-10-13 Thread Ivo Wever
/reporter.rb:13:in `report' from $REE_gems_path/rspec-core-2.0.0.rc/lib/rspec/core/command_line.rb:23:in `run' from $REE_gems_path/rspec-core-2.0.0.rc/lib/rspec/core/runner.rb:55:in `run_in_process' from $REE_gems_path/rspec-core-2.0.0.rc