Sha256: 557ccc249d39535fb4736ba2e0f9232391c4ec3fd8c3725f883225a5b49037da

Contents?: true

Size: 1.3 KB

Versions: 5

Compression:

Stored size: 1.3 KB

Contents

# Configure Rails Environment
ENV["RAILS_ENV"] ||= "test"

require 'simplecov'
SimpleCov.start do
  add_filter '/spec/'

  add_group 'Report', ['lib/active_reporter.rb', 'lib/active_reporter/report', 'lib/active_reporter/invalid_params_error.rb', 'lib/active_reporter/version.rb']

  add_group 'Aggregators', 'lib/active_reporter/aggregator'
  add_group 'Calculators', 'lib/active_reporter/calculator'
  add_group 'Trackers', 'lib/active_reporter/tracker'

  add_group 'Dimensions', 'lib/active_reporter/dimension'

  add_group 'Serializers', 'lib/active_reporter/serializer'

  add_group 'Tasks', 'lib/active_reporter/tasks'

  add_group "Long files" do |src_file| src_file.lines.count > 100 end
  add_group "Short files" do |src_file| src_file.lines.count < 5 end
end

require File.expand_path("../../spec/dummy/config/environment.rb",  __FILE__)
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../spec/dummy/db/migrate", __FILE__)]
require "rails/test_help"

require 'rspec/rails'
require 'factory_bot_rails'
require 'pry'

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.include FactoryBot::Syntax::Methods
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_reporter-0.5.12 spec/spec_helper.rb
active_reporter-0.5.11 spec/spec_helper.rb
active_reporter-0.5.10 spec/spec_helper.rb
active_reporter-0.5.9 spec/spec_helper.rb
active_reporter-0.5.8 spec/spec_helper.rb