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

Version Path
active_mocker-1.4.2 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.4.1 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.3.2 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.3.1 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.3 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.4 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.3 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.11 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.10 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.9 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.8 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.7 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.6 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.5 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.4 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.3 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.2 sample_app_rails_4/features/step_definitions/authentication_steps.rb
active_mocker-1.2.pre.1 sample_app_rails_4/features/step_definitions/authentication_steps.rb