Skip to content

Commit

Permalink
updating config for DatabaseCleaner 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
drewda committed Mar 2, 2015
1 parent de22d1b commit ae9724b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@
config.include FactoryGirl::Syntax::Methods

config.before(:suite) do
DatabaseCleaner.strategy = :truncation, { except: %w[spatial_ref_sys] }
DatabaseCleaner.strategy = :truncation, { except: ['public.spatial_ref_sys'] }
begin
DatabaseCleaner.start
FactoryGirl.lint
ensure
DatabaseCleaner.clean
DatabaseCleaner.clean_with :truncation, { except: ['public.spatial_ref_sys'] }
end
end

config.before(:each) do
# TODO: sign out current user
DatabaseCleaner.clean
DatabaseCleaner.clean_with :truncation, { except: ['public.spatial_ref_sys'] }
end

config.before(:each, type: :feature) do
Expand Down

0 comments on commit ae9724b

Please sign in to comment.