Sha256: 22e9ca71c0dc158598f50ba44c676d08b4b66110f4f4d13e7bee2dbe887cef1a
Contents?: true
Size: 1.12 KB
Versions: 5
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true ENV['RAILS_ENV'] ||= 'test' def coverage_needed? ENV['COVERAGE'] || ENV['TRAVIS'] end if coverage_needed? require 'simplecov' require 'coveralls' SimpleCov.root(File.expand_path('../..', __FILE__)) SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new( [ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] ) SimpleCov.start('rails') do add_filter '/.internal_test_app' add_filter '/lib/generators' add_filter '/spec' add_filter '/lib/noid/rails/version.rb' end SimpleCov.command_name 'spec' end require 'engine_cart' EngineCart.load_application! require 'noid-rails' require 'byebug' unless ENV['CI'] Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each { |f| require f } # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end config.filter_run_when_matching :focus end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
noid-rails-3.2.0 | spec/spec_helper.rb |
noid-rails-3.1.0 | spec/spec_helper.rb |
noid-rails-3.0.3 | spec/spec_helper.rb |
noid-rails-3.0.2 | spec/spec_helper.rb |
noid-rails-3.0.1 | spec/spec_helper.rb |