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