Sha256: 80fc0109f13385cc67b21f84fa1b27d65017bf070110c8d222bef8eea57105aa

Contents?: true

Size: 961 Bytes

Versions: 26

Compression:

Stored size: 961 Bytes

Contents

require 'rails_helper'

feature 'user registers', %Q{
  As a visitor
  I want to register
  So that I can create an account
} do

  # Acceptance Criteria:
  # * I must specify a valid email address,
  #   password, and password confirmation
  # * If I don't specify the required information, I am presented with
  #   an error message

  scenario 'provide valid registration information' do
    visit new_user_registration_path

    fill_in 'Email', with: 'john@example.com'
    fill_in 'Password', with: 'password'
    fill_in 'Password confirmation', with: 'password'

    click_button 'Sign up'

    expect(page).to have_content('Welcome! You have signed up successfully.')
    expect(page).to have_content('Sign Out')
  end

  scenario 'provide invalid registration information' do
    visit new_user_registration_path

    click_button 'Sign up'
    expect(page).to have_content("can't be blank")
    expect(page).to_not have_content('Sign Out')
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
make_it_so-0.6.0 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.5.1 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.5.0 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.4.5 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.4.3 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.4.2 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.4.1 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.4.0 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.3.8 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.3.7 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.3.6 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.3.5 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.3.4 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.2.4 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.2.3 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.1.4 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.1.3 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.1.1 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.1.0 templates/rails/spec/features/user_signs_up_spec.rb
make_it_so-0.0.9 templates/rails/spec/features/user_signs_up_spec.rb