Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- context "on POST to /user_session/create with good creds" do
- setup do
- assert_nil UserSession.find
- assert_nil @controller.send(:current_user)
- @user = Factory(:user, :password => "foobar")
- post :create, :user_session => { :email => @user.email, :password => "foobar" }
- end
- # should_redirect_to("homepage") { root_url }
- should_set_the_flash_to /welcome/i
- end
Add Comment
Please, Sign In to add comment