Some basic tests for user controller index
This commit is contained in:
parent
4955481f14
commit
c97affca35
8 changed files with 31 additions and 38 deletions
|
|
@ -1,5 +1,4 @@
|
|||
RSpec.configure do |config|
|
||||
|
||||
config.before(:suite) do
|
||||
DatabaseCleaner.clean_with(:truncation)
|
||||
end
|
||||
|
|
@ -19,5 +18,4 @@ RSpec.configure do |config|
|
|||
config.after(:each) do
|
||||
DatabaseCleaner.clean
|
||||
end
|
||||
|
||||
end
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
RSpec.configure do |config|
|
||||
|
||||
config.before(:suite) do
|
||||
FactoryGirl.lint
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
RSpec.configure do |config|
|
||||
|
||||
config.before(:suite) do
|
||||
config.before(:suite) do
|
||||
load "#{Rails.root}/db/seeds.rb"
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
module SigninMacros
|
||||
module SignInMacros
|
||||
def sign_in(user)
|
||||
visit new_user_session_path
|
||||
fill_in 'user_email', with:'user.email'
|
||||
Loading…
Add table
Add a link
Reference in a new issue