Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (31 sloc) 0.756 kB
dir = File.dirname(__FILE__)
lib_path = File.expand_path("#{dir}/../lib")
$LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
lib_path = File.expand_path("#{dir}/../../rspec/lib")
$LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
require 'spec'
require 'spec/distributed'
module Spec
module Distributed
module OptionsHelper
def with_rspec_options(options)
begin
orig_options = $rspec_options
$rspec_options = options
yield
ensure
$rspec_options = orig_options
end
end
end
end
end
shared_examples_for "capturing stdout" do
before do
stringio = StringIO.new
$stdout = stringio
end
after do
$stdout = STDOUT
end
end
Jump to Line
Something went wrong with that request. Please try again.