danneu/symposium — Issue #4: Regarding the forums controller spec.
Author: terenceponce
Created: 2012-01-12 02:16:28+00:00
State: open

This is the cause of the failure in our [forums_controller_spec.rb](https://github.com/danneu/symposium/blob/558801d2769b79e8e35340322f3de9812637fc37/spec/controllers/forums_controller_spec.rb) at the moment:

describe 'when admin' do
p @controller
#@user = Factory.create :admin
@user = User.create!(username: "Test", password: "secret", email: "test@test.com")
p @user.inspect
login_user @user
it 'should resolve' do
get :new
response.should render_template(:new)
end
end

Correct me if I'm wrong, but from what I understand, what you're trying to do here is to create a user and logging him in the system before performing the actual controller test. If that's the case, isn't that more of an integration test?