Sha256: 80289f25ccec53294befe8cd6b58d1cd47b59bbe417bff24b1311c5ef66b170d

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

if defined?(Rails) && !Rails.env.production?
  require 'rspec/core/rake_task'

  task :stats do
    require 'rails/code_statistics'

    [
      [:unshift, 'Consumer', 'app/consumers']
    ].each do |method, type, dir|
      ::STATS_DIRECTORIES.send(method, [type, dir])
      ::CodeStatistics::TEST_TYPES << type if type.include? 'specs'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rimless-1.0.1 lib/rimless/tasks/stats.rake
rimless-1.0.0 lib/rimless/tasks/stats.rake