Sha256: ea1ce6b3e7705dd364d6680c8d8aab11a5349f3f7d0463a12722c1f40ce826fc
Contents?: true
Size: 878 Bytes
Versions: 1
Compression:
Stored size: 878 Bytes
Contents
require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start require 'squib' RSpec.configure do |config| config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end end def test_file(str) "#{File.expand_path(File.dirname(__FILE__))}/data/#{str}" end # Refine Squib to allow setting the logger and progress bar module Squib def logger=(l) @logger = l end module_function 'logger=' class Deck attr_accessor :progress_bar end end def mock_squib_logger(old_logger) old_logger = Squib.logger Squib.logger = instance_double(Logger) yield Squib.logger = old_logger end def output_dir File.expand_path('../samples/_output', File.dirname(__FILE__)) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
squib-0.0.5 | spec/spec_helper.rb |