Some tests for users controller, and fixed users#index

This commit is contained in:
Gopesh Tulsyan 2014-05-12 14:19:46 +05:30
parent adfa9cc871
commit 4955481f14
9 changed files with 84 additions and 10 deletions

View file

@ -0,0 +1,23 @@
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.clean_with(:truncation)
end
config.before(:each) do
DatabaseCleaner.strategy = :transaction
end
config.before(:each, :js => true) do
DatabaseCleaner.strategy = :truncation
end
config.before(:each) do
DatabaseCleaner.start
end
config.after(:each) do
DatabaseCleaner.clean
end
end