Sha256: f32c34d9270821bcff6bbf14bc419959dcc26ad4f81e3c67c7526d0b9f3aa2e1

Contents?: true

Size: 539 Bytes

Versions: 18

Compression:

Stored size: 539 Bytes

Contents

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

    def sign_in
      user = FactoryGirl.create(:user)
      user.save
      visit new_user_session_path
      fill_in 'user_email', with: user.email
      fill_in 'user_password', with: user.password
      click_button 'Log in'
      expect(page).to have_content 'Signed in successfully.'
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
geoblacklight-1.7.0 spec/support/features/session_helpers.rb
geoblacklight-1.6.0 spec/support/features/session_helpers.rb
geoblacklight-1.5.1 spec/support/features/session_helpers.rb
geoblacklight-1.5.0 spec/support/features/session_helpers.rb
geoblacklight-1.4.0 spec/support/features/session_helpers.rb
geoblacklight-1.3.0 spec/support/features/session_helpers.rb
geoblacklight-1.2.0 spec/support/features/session_helpers.rb
geoblacklight-1.1.2 spec/support/features/session_helpers.rb
geoblacklight-1.1.0 spec/support/features/session_helpers.rb
geoblacklight-1.0.3 spec/support/features/session_helpers.rb
geoblacklight-1.0.2 spec/support/features/session_helpers.rb
geoblacklight-1.0.1 spec/support/features/session_helpers.rb
geoblacklight-1.0.0 spec/support/features/session_helpers.rb
geoblacklight-1.0.0.pre3 spec/support/features/session_helpers.rb
geoblacklight-1.0.0.pre2 spec/support/features/session_helpers.rb
geoblacklight-1.0.0.pre1 spec/support/features/session_helpers.rb
geoblacklight-0.12.1 spec/support/features/session_helpers.rb
geoblacklight-0.12.0 spec/support/features/session_helpers.rb