Skip to content

Commit

Permalink
Added db-cleaner for tests to try and fix Travis builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Tregenna authored and Ben Tregenna committed Sep 3, 2019
1 parent 13fc2ee commit c9acf37
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ group :test do
gem 'simplecov', require: false, group: :test
# gem 'simplecov-console'
gem 'selenium-webdriver'
gem 'database_cleaner'
end

group :test, :development do
Expand Down
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ GEM
css_parser (1.7.0)
addressable
dalli (2.7.9)
database_cleaner (1.7.0)
dbf (2.0.13)
fastercsv (~> 1.5)
devise (4.6.2)
Expand Down Expand Up @@ -1132,6 +1133,7 @@ DEPENDENCIES
coffee-rails (~> 4.2.2)
comfortable_mexican_sofa (= 1.12.10)
dalli (~> 2.7.2)
database_cleaner
dbf (~> 2.0.7)
devise (~> 4.6.2)
dotenv (~> 0.11.1)
Expand Down Expand Up @@ -1175,4 +1177,4 @@ DEPENDENCIES
will_paginate (~> 3.0)

BUNDLED WITH
1.17.2
1.17.3
3 changes: 3 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

require 'mocha/mini_test'
require 'webmock/minitest'

require 'database_cleaner'

WebMock.disable_net_connect!(:allow => ["codeclimate.com"], :allow_localhost => true)

Mocha::Configuration.prevent(:stubbing_non_existent_method)
Expand Down

0 comments on commit c9acf37

Please sign in to comment.