Sha256: 355ba2f0879f36446f4f990d5f782ef6e1cb9933e3c0007b7071fd5c6c0d188c
Contents?: true
Size: 1.22 KB
Versions: 10
Compression:
Stored size: 1.22 KB
Contents
# frozen_string_literal: true # Configure Rails Environment ENV['RAILS_ENV'] = 'test' ENV['DISABLE_DATABASE_ENVIRONMENT_CHECK'] = '1' require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'countless/rake_tasks' APP_RAKEFILE = File.expand_path('spec/dummy/Rakefile', __dir__) load 'rails/tasks/engine.rake' desc 'Run all specs in spec directory (excluding plugin specs)' RSpec::Core::RakeTask.new(spec: [ 'db:drop', 'db:create', 'db:migrate', 'db:setup' ]) task default: :spec # Configure all code statistics directories Countless.configure do |config| config.stats_base_directories = [ { name: 'Top-levels', dir: 'lib', pattern: %r{/lib/[^/]+\.rb$} }, { name: 'Top-levels specs', test: true, dir: 'spec', pattern: %r{/spec/[^/]+_spec\.rb$} }, { name: 'Libraries', pattern: 'lib/factory_bot/**/*_spec.rb' }, { name: 'Javascript', pattern: 'app/assets/**/*.js' }, { name: 'Stylesheets', pattern: 'app/assets/**/*.css' }, { name: 'Views', pattern: 'app/views/**/*.erb' }, { name: 'Controllers', pattern: 'app/controllers/**/*.rb' }, { name: 'Controllers specs', test: true, pattern: 'spec/controllers/**/*_spec.rb' } ] end
Version data entries
10 entries across 10 versions & 1 rubygems