Sha256: b878145e6a2a5c301ee7fcc34fcf01d0a362886c31758604e2ad81124f6c29f2
Contents?: true
Size: 874 Bytes
Versions: 9
Compression:
Stored size: 874 Bytes
Contents
# Configure Rails Envinronment ENV['RAILS_ENV'] = 'test' require 'simplecov' require 'simplecov-summary' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(SimpleCov::Formatter::HTMLFormatter) SimpleCov.start 'rails' do add_filter 'spec' at_exit {} end require 'bundler/setup' require 'tax_generator' require_relative '../lib/tax_generator/helpers/application_helper' require 'rspec' #fake actor class class Actor def self.current Struct.new(:link) end end RSpec.configure do |config| require 'rspec/expectations' config.include RSpec::Matchers config.include TaxGenerator::ApplicationHelper config.mock_with :mocha config.after(:suite) do if SimpleCov.running SimpleCov::Formatter::HTMLFormatter.new.format(SimpleCov.result) SimpleCov::Formatter::SummaryFormatter.new.format(SimpleCov.result) end end end
Version data entries
9 entries across 9 versions & 1 rubygems