Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test 'should log in and create spaceship' do
- sign_in(:user)
- # assert_redirected_to expeditions_path
- post spaceships_path, params: { spaceship: attributes_for(:spaceship) }
- assert_redirected_to spaceships_path
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement