Skip to content

Commit

Permalink
Merge 46c0c0b into 8605816
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Nov 29, 2013
2 parents 8605816 + 46c0c0b commit 66c9a0a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions spec/spec_helper.rb
Expand Up @@ -49,8 +49,6 @@ def self.new(*args, &block)

Dir['./spec/support/**/*.rb'].map {|f| require f}

$stderr = RSpec::StdErrSplitter.new

class NullObject
private
def method_missing(method, *args, &block)
Expand Down Expand Up @@ -122,23 +120,13 @@ def without_env_vars(*vars)
end
end

module StdErrIsolation
def with_isolated_stderr
original = $stderr
$stderr = StringIO.new
yield
$stderr = original
end
end

require 'rspec/support/spec'

RSpec.configure do |c|
# structural
c.alias_it_behaves_like_to 'it_has_behavior'
c.around {|example| Sandboxing.sandboxed { example.run }}
c.include(RSpecHelpers)
c.include(StdErrIsolation)
c.include Aruba::Api, :example_group => {
:file_path => /spec\/command_line/
}
Expand Down

0 comments on commit 66c9a0a

Please sign in to comment.