Sha256: 312989ca424cc1936830725ddfe534a687773a04577a77bd3cded0c41453a778
Contents?: true
Size: 807 Bytes
Versions: 4
Compression:
Stored size: 807 Bytes
Contents
require 'spec_helper' require 'support/features/feature_helpers' feature 'visitor at new user form, not signed in' do scenario 'visit with no arguments' do visit new_users_path expect(page).to have_current_path new_users_path within 'h2' do expect(page).to have_content /Sign up/i end end scenario 'defaults email to value provided in query string' do visit new_users_path(user: { email: 'dude@example.com' }) expect(page).to have_selector 'input[value="dude@example.com"]' end end feature 'visitor at new user form, already signed in' do scenario 'redirects user to redirect_url' do user = create(:user, email: 'test.user@example.com') sign_in_with 'Test.USER@example.com', user.password visit new_users_path expect_path_is_redirect_url end end
Version data entries
4 entries across 4 versions & 1 rubygems