some basic tests for admin/users controller, fixed bug in admin/users controller for displaying users

Fixes by hounci violations
This commit is contained in:
Gopesh Tulsyan 2014-05-12 19:30:36 +05:30
parent 7573a19240
commit f84f3b97a7
7 changed files with 64 additions and 6 deletions

View file

@ -1,5 +1,4 @@
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.clean_with(:truncation)
end
@ -7,8 +6,8 @@ RSpec.configure do |config|
config.before(:each) do
DatabaseCleaner.strategy = :transaction
end
config.before(:each, js: true) do
config.before(:each, :js => true) do
DatabaseCleaner.strategy = :truncation
end