examples/example_helper.rb in spicycode-micronaut-rails-0.2.0.0 vs examples/example_helper.rb in spicycode-micronaut-rails-0.2.2

- old
+ new

@@ -1,20 +1,21 @@ lib_path = File.expand_path(File.dirname(__FILE__) + "/../lib") $LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path) -require 'micronaut/rails/version' +require 'rubygems' + begin - gem "spicycode-micronaut", Micronaut::Rails::Version::MICRONAUT_VERSION_STRING + gem "spicycode-micronaut", ">= 0.2.2" rescue LoadError => e - puts "\nERROR - This version of micronaut-rails requires micronaut #{Micronaut::Rails::Version::MICRONAUT_VERSION_STRING} - please install with: \n" - puts "gem install spicycode-micronaut --version #{Micronaut::Rails::Version::MICRONAUT_VERSION_STRING}\n" + puts "\nERROR - This version of micronaut-rails requires micronaut 0.2.2 or higher." + puts "gem install spicycode-micronaut --version 0.2.2" puts exit(1) end require 'micronaut' require 'micronaut-rails' -require 'rubygems' + gem :mocha module Micronaut module Matchers def fail @@ -48,9 +49,7 @@ Micronaut.configure do |config| config.mock_with :mocha config.color_enabled = use_color? config.formatter = :documentation - config.profile_examples = false config.filter_run :focused => true - config.autorun! -end \ No newline at end of file +end