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

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

2011-02-06 Thread Rich Price
I am assuming that the get and response lines are not commented out in your actual test! Does your code consist ONLY of the lines below? I think you need to proceed the "it" line with a "describe" line. for example: describe "my test" do it "" do *put other code here* end e

[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: