Sha256: 302f0540c6b13bfe4b2cc928859097570bc883948fd6a3796725788aa3e953fc

Contents?: true

Size: 581 Bytes

Versions: 16

Compression:

Stored size: 581 Bytes

Contents

include Warden::Test::Helpers
Warden.test_mode!

# Feature: User index page
#   As a user
#   I want to see a list of users
#   So I can see who has registered
feature 'User index page', :devise do

  after(:each) do
    Warden.test_reset!
  end

  # Scenario: User listed on index page
  #   Given I am signed in
  #   When I visit the user index page
  #   Then I see my own email address
  scenario 'user sees own email address' do
    user = FactoryGirl.create(:user)
    login_as(user, scope: :user)
    visit users_path
    expect(page).to have_content user.email
  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
rails_apps_testing-0.3.12 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.11 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.10 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.9 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.8 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.7 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.6 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.5 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.4 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.3 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.2 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.1 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_testing-0.3.0 lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
rails_apps_pages-0.4.9 lib/generators/pages/users/templates/spec/features/users/user_index_spec.rb
rails_apps_pages-0.4.8 lib/generators/pages/users/templates/spec/features/users/user_index_spec.rb
rails_apps_pages-0.4.7 lib/generators/pages/users/templates/spec/features/users/user_index_spec.rb