Skip to content

Commit

Permalink
Add test for root_path redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Smith committed Aug 27, 2013
1 parent 2ca9c8e commit 7d60b66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/features/user_signs_in_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
current_path.should == root_path
end

it 'successfully with redirect to root path' do
sign_in Fabricate(:user)
current_path.should == root_path
visit sign_in_path
current_path.should == root_path
end

context 'when invalid attempt displays errors for' do
before { Fabricate(:user, email: 'jack@mail.com', password: 'welcome', password_confirmation: 'welcome') }

Expand Down

0 comments on commit 7d60b66

Please sign in to comment.