rewrite dashboard feature steps using spinach
This commit is contained in:
parent
bb75052a90
commit
d74f54736b
9 changed files with 205 additions and 17 deletions
|
@ -4,6 +4,12 @@ require './config/environment'
|
|||
require 'rspec'
|
||||
require 'database_cleaner'
|
||||
|
||||
%w(login_helpers stubbed_repository).each do |f|
|
||||
require Rails.root.join('spec', 'support', f)
|
||||
end
|
||||
|
||||
include LoginHelpers
|
||||
|
||||
DatabaseCleaner.strategy = :transaction
|
||||
Spinach.hooks.before_scenario { DatabaseCleaner.start }
|
||||
Spinach.hooks.after_scenario { DatabaseCleaner.clean }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue