Sha256: 607e3cb1bb87c997e206d2f115519097beaadeabe08c20584ec771b4a1e6dff9

Contents?: true

Size: 495 Bytes

Versions: 23

Compression:

Stored size: 495 Bytes

Contents

module Features
  module SessionHelpers
    def sign_up_with(email, password, confirmation)
      visit new_user_registration_path
      fill_in 'Email', with: email
      fill_in 'Password', with: password
      fill_in 'Password confirmation', :with => confirmation
      click_button 'Sign up'
    end

    def signin(email, password)
      visit new_user_session_path
      fill_in 'Email', with: email
      fill_in 'Password', with: password
      click_button 'Sign in'
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
rails_apps_testing-0.3.13 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.12 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.11 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.10 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.9 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.8 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.7 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.6 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.5 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.4 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.3 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.2 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.1 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_testing-0.3.0 lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
rails_apps_pages-0.4.9 lib/generators/pages/users/templates/spec/support/helpers/session_helpers.rb
rails_apps_pages-0.4.8 lib/generators/pages/users/templates/spec/support/helpers/session_helpers.rb
rails_apps_pages-0.4.7 lib/generators/pages/users/templates/spec/support/helpers/session_helpers.rb
rails_apps_pages-0.4.6 lib/generators/pages/users/templates/spec/support/helpers/session_helpers.rb
rails_apps_pages-0.4.5 lib/generators/pages/users/templates/spec/support/helpers/session_helpers.rb
rails_apps_pages-0.4.4 lib/generators/pages/users/templates/spec/support/helpers/session_helpers.rb