Sha256: 77ac5048e454832afa46e64d0eb977c60777d6ae20b880798c71d642fb53ff7e
Contents?: true
Size: 915 Bytes
Versions: 1
Compression:
Stored size: 915 Bytes
Contents
dir = File.dirname(__FILE__) require "#{dir}/environment_fixture_setup" require "#{dir}/rr/expectations/times_called_expectation/times_called_expectation_helper" require "#{dir}/rr/adapters/rr_methods_spec_helper" ARGV.push("--format", "nested") unless ARGV.include?("--format") ARGV.push("-b") Spec::Runner.configure do |config| config.mock_with RR::Adapters::Rspec end describe "Swapped Space", :shared => true do attr_reader :space, :original_space before do @original_space = RR::Space.instance RR::Space.instance = RR::Space.new @space = RR::Space.instance end after(:each) do RR::Space.instance = @original_space end end class Spec::ExampleGroup class << self def macro(name, &implementation) (class << self; self; end).class_eval do define_method(name, &implementation) end end end def eigen(object) class << object; self; end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rr-0.10.11 | spec/spec_helper.rb |