Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump database_cleaner from 1.8.5 to 2.0.2 #45

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ group :development, :test do
gem 'pry-byebug'
gem 'rspec'
gem 'rack-test'
gem 'database_cleaner'
gem 'database_cleaner-sequel'
gem 'shotgun', git: 'https://github.com/delonnewman/shotgun.git'
gem 'commander'
gem 'better_errors'
Expand Down
11 changes: 9 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ GEM
coderay (1.1.3)
commander (4.5.2)
highline (~> 2.0.0)
database_cleaner (1.8.5)
database_cleaner-core (2.0.1)
database_cleaner-sequel (2.0.2)
database_cleaner-core (~> 2.0.0)
sequel
diff-lcs (1.4.2)
erubi (1.10.0)
event_sourcery (0.24.0)
Expand Down Expand Up @@ -67,12 +70,16 @@ GEM
tilt (2.3.0)

PLATFORMS
aarch64-linux
arm64-darwin
ruby
x86_64-darwin
x86_64-linux

DEPENDENCIES
better_errors
commander
database_cleaner
database_cleaner-sequel
event_sourcery
event_sourcery-postgres
pg (= 1.5.4)
Expand Down
11 changes: 8 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rack/test'
require 'securerandom'
require 'database_cleaner'
require 'database_cleaner/sequel'

$LOAD_PATH << '.'

Expand Down Expand Up @@ -31,8 +31,13 @@
config.logger = Logger.new(nil)
end

config.before do
config.before(:suite) do
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.clean
end

config.around(:each) do |example|
DatabaseCleaner.cleaning do
example.run
end
end
end