Sha256: 3b1846527863cf697d7e4a7c024b2cd35d47ab01b224d43002f827ec88d72f34

Contents?: true

Size: 418 Bytes

Versions: 4

Compression:

Stored size: 418 Bytes

Contents

module AcceptanceMacros
  def login!
    before(:each) do
      @current_user = User.make(email: 'x@example.com', password: 'senha123', password_confirmation: 'senha123')
      visit new_user_session_path
      fill_in 'Email', with: 'x@example.com'
      fill_in 'Senha', with: 'senha123'
      click_button 'Entrar'
    end
  end
end

RSpec.configure do |config|
  config.extend AcceptanceMacros, type: :request
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pah-0.0.20 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.19 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.17 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.16 lib/pah/files/spec/support/acceptance_macros.rb