Sha256: 33550fd9b7afc153e927a6b26c5c897ba12b75563de43bdfe161f4f2f6747558

Contents?: true

Size: 382 Bytes

Versions: 9

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

namespace :factory_girl do
  desc "Verify that all FactoryGirl factories are valid"
  task lint: :environment do
    if Rails.env.test?
      begin
        DatabaseCleaner.start
        FactoryGirl.lint
      ensure
        DatabaseCleaner.clean
      end
    else
      system("bundle exec rake factory_girl:lint RAILS_ENV='test'")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-core-0.4.4 lib/tasks/factory_girl.rake
decidim-core-0.4.2 lib/tasks/factory_girl.rake
decidim-core-0.4.1 lib/tasks/factory_girl.rake
decidim-core-0.4.3 lib/tasks/factory_girl.rake
decidim-core-0.4.0 lib/tasks/factory_girl.rake
decidim-core-0.3.2 lib/tasks/factory_girl.rake
decidim-core-0.3.1 lib/tasks/factory_girl.rake
decidim-core-0.3.0 lib/tasks/factory_girl.rake
decidim-core-0.2.0 lib/tasks/factory_girl.rake