Sha256: 2d209e579dfb799cc7d14f1094b2b0e9d276f1bfe5ac6feb4aeb9972f41d4d00
Contents?: true
Size: 608 Bytes
Versions: 14
Compression:
Stored size: 608 Bytes
Contents
require "examples/example_helper" module RR describe Space, " class" do it_should_behave_like "RR::Space" before(:each) do @original_space = Space.instance @space = Space.new Space.instance = @space end after(:each) do Space.instance = @original_space end it "proxies to a singleton instance of Space" do create_double_args = nil (class << @space; self; end).class_eval do define_method :create_double do |*args| create_double_args = args end end Space.create_double(:foo, :bar) create_double_args.should == [:foo, :bar] end end end
Version data entries
14 entries across 14 versions & 1 rubygems