Advertisement
Sparkster

Untitled

Jul 25th, 2013
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.42 KB | None | 0 0
  1.  describe "with valid information" do
  2.  let(:user) { FactoryGirl.create(:user) }
  3.  before do
  4.  fill_in "Email",    with: user.email.upcase
  5.  fill_in "Password", with: user.password
  6.  click_button "Sign in"
  7. end
  8.  
  9.  it { should have_title(user.name) }
  10.  it { should have_link('Profile',     href: user_path(user)) }
  11.  it { should have_link('Sign out',    href: signout_path) }
  12.  it { should_not have_link('Sign in', href: signin_path) }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement