@controller nil in sign_in test helper #157

Closed
croaky opened this Issue Jul 8, 2011 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

croaky commented Jul 8, 2011

From the mailing list:

This results in @controller being nil.

require 'spec_helper'
require 'clearance/testing'

describe LikesController do
  context "a user" do
    it "should get things" do
      sign_in
      get 'things'
      response.should be_success
    end
  end
end
Contributor

croaky commented Jul 11, 2011

Update: it looks like this was being used in a Capybara-style integration test.

@croaky croaky closed this Aug 22, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment