Rakefile in factory_bot-preload-0.1.1 vs Rakefile in factory_bot-preload-0.2.0

- old
+ new

@@ -1,13 +1,15 @@ +# frozen_string_literal: true + require "bundler/gem_tasks" case ENV["TEST_FRAMEWORK"] when "rspec" require "rspec/core/rake_task" RSpec::Core::RakeTask.new - task :default => :spec + task default: :spec when "minitest" require "rake/testtask" Rake::TestTask.new(:test) do |t| t.libs << "test" @@ -15,10 +17,10 @@ t.test_files = FileList["test/**/*_test.rb"] t.verbose = false t.warning = false end - task :default => :test + task default: :test else task :default do system "TEST_FRAMEWORK=rspec bundle exec rake spec" system "TEST_FRAMEWORK=minitest bundle exec rake test" end