Sha256: faebbc41d20f85118809c8cee3ea169c41f069b36e14acd40f5e755a94371ebc
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require 'simplecov' require 'coveralls' formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter] SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter::new(formatters) SimpleCov.start do add_filter do |src| r = [ src.filename =~ /lib/, src.filename =~ /models/, src.filename =~ /controllers/ ].uniq r.count == 1 && r.first.nil? end add_filter "engine.rb" add_filter "spec.rb" end ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'spec_helper' require 'factory_bot_rails' ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../') Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f } ActiveRecord::Migration.maintain_test_schema! FactoryBot.definition_file_paths = ["#{::Rails.root}/spec/factories"] FactoryBot.find_definitions RSpec.configure do |config| config.use_transactional_fixtures = true config.infer_spec_type_from_file_location! config.order = :random config.render_views config.include FactoryBot::Syntax::Methods end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
admin_invitable-1.0.0 | spec/rails_helper.rb |