Skip to content

Commit

Permalink
test for users link.
Browse files Browse the repository at this point in the history
  • Loading branch information
sabman committed Mar 4, 2012
1 parent fc8bdee commit cc22d43
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/requests/authentication_pages_spec.rb
Expand Up @@ -29,9 +29,12 @@
end

it { should have_selector('title', text: user.name) }
it { should have_link('Profile', href: user_path(user)) }
it { should have_link('Settings', href: edit_user_path(user)) }
it { should have_link('Sign out', href: signout_path) }

it { should have_link('Users', href: users_path) }
it { should have_link('Profile', href: user_path(user)) }
it { should have_link('Settings', href: edit_user_path(user)) }
it { should have_link('Sign out', href: signout_path) }

it { should_not have_link('Sign in', href: signin_path) }

describe "followed by signout" do
Expand Down

0 comments on commit cc22d43

Please sign in to comment.