[rspec-users] Controller Testing + Devise = boom (undefined @controller, request)

2011-02-05 Thread Peter Ehrlich
Here I am, trying to learn TDD and BDD. Getting start, most simple case, and the world is falling apart: My test code: it "should respond with success" do puts 'hi' # get :new # response.should be_success end My stack trace: $ rspec spec "controller: nil" F Failures:

Re: [rspec-users] Controller Testing + Devise = boom (undefined @controller, request)

2011-02-06 Thread Peter Ehrlich
My apologies! Yes, the describe is there. Here's the whole file, with some other commented code (tests, before block) removed: require 'spec_helper' describe 'VideosController' do describe 'new' do it "should respond with success" do puts 'hi' # get :new # response.shou