Sha256: fc52626e9d3aaded983a3421e03c41298a57e729956f78745f639dabbfa9cc76

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

if defined?(Rails) && Rails.env.development?
  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

1 entries across 1 versions & 1 rubygems

Version Path
rimless-1.0.2 lib/rimless/tasks/stats.rake