Sha256: add1df9f8fba0d20316eda090e862fdea9164e4314aa94dd0b4fde571d193683
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
# -*- encoding : utf-8 -*- 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pah-0.0.15 | lib/pah/files/spec/support/acceptance_macros.rb |
pah-0.0.14 | lib/pah/files/spec/support/acceptance_macros.rb |
pah-0.0.13 | lib/pah/files/spec/support/acceptance_macros.rb |