Sha256: 1560f6fdedbc55f3a18a6c8a3b5c30f661c5cb79f743159b0692fa4dff5bd814
Contents?: true
Size: 1.49 KB
Versions: 2
Compression:
Stored size: 1.49 KB
Contents
# encoding: utf-8 $testing = true unless ENV['SKIP_RCOV'] require 'simplecov' require 'simplecov-rcov' class SimpleCov::Formatter::MergedFormatter def format(result) SimpleCov::Formatter::HTMLFormatter.new.format(result) SimpleCov::Formatter::RcovFormatter.new.format(result) end end SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter SimpleCov.start do add_filter "/vendor/" add_filter "/spec/" end end %w{ bundler/setup flexmock/rspec active_support stringio countdownlatch adhearsion }.each { |f| require f } Thread.abort_on_exception = true Bundler.require(:default, :test) if defined?(Bundler) Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.mock_framework = :flexmock config.filter_run :focus => true config.run_all_when_everything_filtered = true config.color_enabled = true config.before :suite do Adhearsion::Logging.start Adhearsion::Logging.default_appenders, :trace, Adhearsion.config.platform.logging.formatter end config.before :each do Adhearsion.router = nil end end Adhearsion::Events.exeption do |e| puts e.message puts e.backtrace.join("\n") end # Test modules for #mixin methods module TestBiscuit def throwadogabone true end end module MarmaladeIsBetterThanJam def sobittersweet true end end def new_uuid SecureRandom.uuid end alias :random_call_id :new_uuid
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
adhearsion-2.3.0 | spec/spec_helper.rb |
adhearsion-2.2.1 | spec/spec_helper.rb |