Sha256: 05db99d4341efc1eb88db6525952b779da670cc16315165a13d6bc033ede8d57

Contents?: true

Size: 857 Bytes

Versions: 1

Compression:

Stored size: 857 Bytes

Contents

begin
  require "bundler/setup"
  require "bundler/gem_tasks"
rescue LoadError
  puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end

require "rdoc/task"

RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = "rdoc"
  rdoc.title    = "Jobshop"
  rdoc.options << "--line-numbers"
  rdoc.rdoc_files.include("README.md")
  rdoc.rdoc_files.include("lib/**/*.rb")
end

APP_RAKEFILE = File.expand_path("spec/canary/Rakefile", __dir__)
load "rails/tasks/engine.rake"
load "rails/tasks/statistics.rake"
load "rspec/rails/tasks/rspec.rake"

desc "Verify that all FactoryBot factories are valid"
task lint: :environment do
  FACTORY_PATH = File.expand_path("spec/factories", __dir__)
  FactoryBot.definition_file_paths = [ FACTORY_PATH ]
  FactoryBot.find_definitions

  DatabaseCleaner.cleaning do
    FactoryBot.lint traits: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jobshop-0.0.167 Rakefile