Introduction
Introduction Statistics Contact Development Disclaimer Help
auth_logic_helpers.rb - warvox - VoIP based wardialing tool, forked from rapid7…
git clone git://jay.scot/warvox
Log
Files
Refs
README
---
auth_logic_helpers.rb (608B)
---
1 module Authlogic
2 module TestHelper
3 def create_user_session(user)
4 visit login_path
5 within "form#new_user_session" do
6 expect(page).to have_content "Username"
7 expect(page).to have_content "Password"
8 fill_in "user_session_login", with: user.login
9 fill_in "user_session_password", with: user.password
10 click_button "Sign in"
11 end
12 end
13 end
14 end
15
16 # Make this available to just the request and feature specs
17 RSpec.configure do |config|
18 config.include Authlogic::TestHelper, type: :request
19 config.include Authlogic::TestHelper, type: :feature
20 end
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.