Advertisement
Guest User

Untitled

a guest
Jan 9th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.23 KB | None | 0 0
  1.   test 'should log in and create spaceship' do
  2.     sign_in(:user)
  3.     # assert_redirected_to expeditions_path
  4.     post spaceships_path, params: { spaceship: attributes_for(:spaceship) }
  5.     assert_redirected_to spaceships_path
  6.    end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement