refactor feature steps
This commit is contained in:
parent
ef4e9c24d3
commit
79eb5ab396
34 changed files with 270 additions and 376 deletions
10
features/steps/shared/authentication.rb
Normal file
10
features/steps/shared/authentication.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
require Rails.root.join('spec', 'support', 'login_helpers')
|
||||
|
||||
module SharedAuthentication
|
||||
include Spinach::DSL
|
||||
include LoginHelpers
|
||||
|
||||
Given 'I sign in as a user' do
|
||||
login_as :user
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue