Sha256: b40a9031fd6c397ba36f05fcaef42ff9390f24c96ecd39d40de60608525be637
Contents?: true
Size: 883 Bytes
Versions: 1
Compression:
Stored size: 883 Bytes
Contents
lib_path = File.expand_path(File.dirname(__FILE__) + "/../lib") $LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path) require 'micronaut' gem :mocha require File.expand_path(File.dirname(__FILE__) + "/resources/example_classes") module Micronaut module Matchers def fail raise_error(::Micronaut::Expectations::ExpectationNotMetError) end def fail_with(message) raise_error(::Micronaut::Expectations::ExpectationNotMetError, message) end end end def remove_last_describe_from_world Micronaut::World.behaviour_groups.pop end class DummyFormatter < Micronaut::Formatters::BaseTextFormatter; end def dummy_reporter DummyFormatter.new({}, StringIO.new) end Micronaut.configure do |config| config.mock_with :mocha config.autorun! config.options = Micronaut::RunnerOptions.new(:color => true, :formatter => :progress) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spicycode-micronaut-0.1.1 | examples/example_helper.rb |