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