Sha256: 806ed7fd3a70116b322413a6e25d81e0e1c767f4c921751c8563c72ce6378e25

Contents?: true

Size: 381 Bytes

Versions: 15

Compression:

Stored size: 381 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

15 entries across 15 versions & 1 rubygems

Version Path
decidim-core-0.1.0 lib/tasks/factory_girl.rake
decidim-core-0.0.8.1 lib/tasks/factory_girl.rake
decidim-core-0.0.7 lib/tasks/factory_girl.rake
decidim-core-0.0.6 lib/tasks/factory_girl.rake
decidim-core-0.0.5 lib/tasks/factory_girl.rake
decidim-core-0.0.3 lib/tasks/factory_girl.rake
decidim-core-0.0.2 lib/tasks/factory_girl.rake
decidim-core-0.0.1 lib/tasks/factory_girl.rake
decidim-core-0.0.1.alpha9 lib/tasks/factory_girl.rake
decidim-core-0.0.1.alpha8 lib/tasks/factory_girl.rake
decidim-core-0.0.1.alpha7 lib/tasks/factory_girl.rake
decidim-core-0.0.1.alpha6 lib/tasks/factory_girl.rake
decidim-core-0.0.1.alpha5 lib/tasks/factory_girl.rake
decidim-core-0.0.1.alpha4 lib/tasks/factory_girl.rake
decidim-core-0.0.1.alpha3 lib/tasks/factory_girl.rake