Sha256: 3dddc79d42378538b9ac8db566a7b6db8ff2e694d4eb4c79a2d00433059ec33d
Contents?: true
Size: 810 Bytes
Versions: 19
Compression:
Stored size: 810 Bytes
Contents
Given /^a user visits the signin page$/ do visit signin_path end When /^they submit invalid signin information$/ do click_button "Sign in" end Then /^they should see an error message$/ do expect(page).to have_selector('div.alert.alert-error') end Given /^the user has an account$/ do @user = User.create(name: "Example User", email: "user@example.com", password: "foobar", password_confirmation: "foobar") end When /^the user submits valid signin information$/ do fill_in "Email", with: @user.email fill_in "Password", with: @user.password click_button "Sign in" end Then /^they should see their profile page$/ do expect(page).to have_title(@user.name) end Then /^they should see a signout link$/ do expect(page).to have_link('Sign out', href: signout_path) end
Version data entries
19 entries across 19 versions & 1 rubygems