Merge pull request #2463 from Growstuff/awesomecode-lint-ruby-rspec-hookargument-43686

Auto corrected by following Lint Ruby RSpec/HookArgument
This commit is contained in:
Brenda Wallace
2020-03-04 14:58:45 +13:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -363,7 +363,7 @@ describe Crop do
end
context "csv loading" do
before(:each) do
before do
# don't use 'let' for this -- we need to actually create it,
# regardless of whether it's used.
@cropbot = FactoryBot.create(:cropbot)

View File

@@ -19,7 +19,7 @@ RSpec.configure do |config|
DatabaseCleaner.clean_with(:truncation)
end
config.before(:each) do
config.before do
DatabaseCleaner.strategy = :transaction
end
@@ -36,11 +36,11 @@ RSpec.configure do |config|
end
end
config.before(:each) do
config.before do
DatabaseCleaner.start
end
config.append_after(:each) do
config.append_after do
DatabaseCleaner.clean
end
end