spec/spec_helper.rb in howitzer-1.0.1 vs spec/spec_helper.rb in howitzer-1.0.2

- old
+ new

@@ -4,10 +4,15 @@ require 'tmpdir' require 'ffaker' require 'capybara' require 'json' require 'capybara/dsl' +require 'active_support' +require 'active_support/core_ext' +require 'repeater' +require 'howitzer/exceptions' +require 'howitzer/utils/log' SimpleCov.start do add_filter "/spec/" add_filter '/config/' add_filter do |source_file| @@ -24,9 +29,16 @@ config.expect_with :rspec do |c| c.syntax = :expect end config.mock_with :rspec do |c| c.syntax = :expect + end + config.around(:each) do |ex| + $stdout = StringIO.new + $stderr = StringIO.new + ex.run + $stdout = STDOUT + $stderr = STDERR end end def project_path File.expand_path(File.join(File.dirname(__FILE__), '..'))