spec/spec_helper.rb in rr-1.0.3 vs spec/spec_helper.rb in rr-1.0.4

- old
+ new

@@ -8,10 +8,14 @@ Spec::Runner.configure do |config| config.mock_with RR::Adapters::Rspec end describe "Swapped Space", :shared => true do - attr_reader :space, :original_space + attr_reader :original_space + unless instance_methods.include?(:space) + attr_reader :space + end + before do @original_space = RR::Space.instance RR::Space.instance = RR::Space.new @space = RR::Space.instance end