Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe "with valid information" do
- let(:user) { FactoryGirl.create(:user) }
- before do
- fill_in "Email", with: user.email.upcase
- fill_in "Password", with: user.password
- click_button "Sign in"
- end
- it { should have_title(user.name) }
- it { should have_link('Profile', href: user_path(user)) }
- it { should have_link('Sign out', href: signout_path) }
- it { should_not have_link('Sign in', href: signin_path) }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement