Sha256: fd0d022f4d6a90582e2eaa5b2d38f9171aca79a030d5011c3f00a1d287ec58db

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

Stored size: 717 Bytes

Contents

require 'spec_helper'

feature "UserManagements", :type => :feature do
  scenario "create a new user" do
    feature_login
    click_link 'Users'
    click_link 'New User'
    fill_in 'First name', with: 'Alice'
    fill_in 'Last name', with: 'Alison'
    fill_in 'Email', with: 'alice@example.com'
    fill_in 'Password', with: 'test1234'
    fill_in 'Password confirmation', with: 'test1234'
    click_button 'Create User'
    expect(page).to have_content('Alice Alison')
    click_link 'logout'
    fill_in 'Email', with: 'alice@example.com'
    fill_in 'Password', with: 'test1234'
    click_button 'Log in'
    expect(page).to_not have_content 'Login'
  end
  scenario "edit user" do
    feature_login
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
app_kit-0.0.2 spec/features/app_kit/app_kit_user_managements_spec.rb
app_kit-0.0.1 spec/features/app_kit/app_kit_user_managements_spec.rb