Guest User

Untitled

a guest
Apr 14th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. context "on POST to /user_session/create with good creds" do
  2. setup do
  3. assert_nil UserSession.find
  4. assert_nil @controller.send(:current_user)
  5. @user = Factory(:user, :password => "foobar")
  6. post :create, :user_session => { :email => @user.email, :password => "foobar" }
  7. end
  8. # should_redirect_to("homepage") { root_url }
  9. should_set_the_flash_to /welcome/i
  10. end
Add Comment
Please, Sign In to add comment