Sha256: 112acd7d2ed1c45f637e33c99e19ecbb501ccb4eac37a5232d142b14cc203ad0

Contents?: true

Size: 463 Bytes

Versions: 12

Compression:

Stored size: 463 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

12 entries across 12 versions & 1 rubygems

Version Path
pah-0.0.12 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.11 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.10 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.9 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.8 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.7 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.6 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.5 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.4 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.3 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.2 lib/pah/files/spec/support/acceptance_macros.rb
pah-0.0.1 lib/pah/files/spec/support/acceptance_macros.rb