Sha256: 8cabc4353b1a879b22d7dcc3aa42fafe364c6eed351238937e7cbbae0d7f3750
Contents?: true
Size: 955 Bytes
Versions: 1
Compression:
Stored size: 955 Bytes
Contents
lib_path = File.expand_path(File.dirname(__FILE__) + "/../lib") $LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path) require 'micronaut' 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.before(:each, :pending => true) do raise "the roof" end config.after(:each, :focused => true) do puts 'was the focus worth it?' end end Micronaut::Runner.autorun
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spicycode-micronaut-0.0.6 | examples/example_helper.rb |