Sha256: 9a7c6309dc7cb810b9bb53e0ac30d412abfcb7e5860e4ab74216c1b3b5e2573b

Contents?: true

Size: 574 Bytes

Versions: 7

Compression:

Stored size: 574 Bytes

Contents

# 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
when "minitest"
  require "rake/testtask"

  Rake::TestTask.new(:test) do |t|
    t.libs << "test"
    t.libs << "lib"
    t.test_files = FileList["test/**/*_test.rb"]
    t.verbose = false
    t.warning = false
  end

  task default: :test
else
  task :default do
    system "TEST_FRAMEWORK=rspec bundle exec rake spec"
    system "TEST_FRAMEWORK=minitest bundle exec rake test"
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fixture_bot-0.3.0 Rakefile
fixture_bot-0.2.0 Rakefile
fixture_bot-0.1.0 Rakefile
factory_bot-preload-0.3.0 Rakefile
factory_bot-preload-0.2.2 Rakefile
factory_bot-preload-0.2.1 Rakefile
factory_bot-preload-0.2.0 Rakefile