mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-28 19:51:57 -04:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user