Skip to content

Commit 628f321

Browse files
committed
Refactor Rakefile to streamline test environment preparation
1 parent f08bb7c commit 628f321

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Rakefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def run_with_gemfile(gemfile)
3838
Bundler.with_original_env do
3939
begin
4040
sh "BUNDLE_GEMFILE='#{gemfile}' bundle install --quiet"
41-
Rake.application['app:db:create'].invoke
42-
Rake.application['app:db:test:prepare'].invoke
41+
Rake.application['prepare_test_env'].invoke
4342
sh "BUNDLE_GEMFILE='#{gemfile}' bundle exec rake spec"
4443
ensure
4544
Rake.application['app:db:drop:all'].execute

0 commit comments

Comments
 (0)