Sha256: 42c7a8cf2e6e2d862f42c9029aa7667bc1afed6e5461c046761e5c88065917f0
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 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 = FactoryBot.create(:user) login_as(user, scope: :user) visit users_path expect(page).to have_content user.email end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_apps_testing-0.3.13 | lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb |