Sha256: a84c3ce18b854523451c76a5d32835207181cfcb18aaba89f4a662bb6a6d1ea3

Contents?: true

Size: 1.1 KB

Versions: 7

Compression:

Stored size: 1.1 KB

Contents

# frozen_string_literal: true

require "simplecov"

SimpleCov.start :rails do
  add_filter "dummy_generator.rb"
  add_filter "install_generator.rb"
  add_filter "lib/archangel/testing_support"
  add_filter "lib/generators/archangel/install/templates"
  add_filter "version.rb"

  add_group "Inputs", "app/inputs"
  add_group "Modules", "app/modules"
  add_group "Policies", "app/policies"
  add_group "Services", "app/services"
  add_group "Uploaders", "app/uploaders"
end

ENV["RAILS_ENV"] ||= "test"

begin
  require File.expand_path("dummy/config/environment", __dir__)
rescue LoadError
  puts "Could not load test application. Run `bundle exec rake dummy_app` first"
  exit
end

if Rails.env.production?
  abort("The Rails environment is running in production mode!")
end

require "spec_helper"

require "pry-byebug"
require "rspec/rails"

# Archangel test support files
require "archangel/testing_support/support"

# Local support files
Dir[Rails.root.join("../support/**/*.rb")].each { |f| require f }

RSpec.configure do |config|
  config.infer_spec_type_from_file_location!
  config.filter_rails_from_backtrace!
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
archangel-0.0.8 spec/rails_helper.rb
archangel-0.0.7 spec/rails_helper.rb
archangel-0.0.6 spec/rails_helper.rb
archangel-0.0.5 spec/rails_helper.rb
archangel-0.0.4 spec/rails_helper.rb
archangel-0.0.3 spec/rails_helper.rb
archangel-0.0.2 spec/rails_helper.rb