Sha256: 1b6e7b59e10d56a5e87dad7d30c3eb886fcf4805487d14f05245197a47acc0ef
Contents?: true
Size: 610 Bytes
Versions: 3
Compression:
Stored size: 610 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper.rb' module Bug8302 class Foo def Foo.class_method(arg) end def instance_bar(arg) end end describe "Bug report 8302:" do it "class method is not restored correctly when proxied" do Foo.should_not_receive(:class_method).with(Array.new) Foo.rspec_verify Foo.class_method(Array.new) end it "instance method is not restored correctly when proxied" do foo = Foo.new foo.should_not_receive(:instance_bar).with(Array.new) foo.rspec_verify foo.instance_bar(Array.new) end end end
Version data entries
3 entries across 3 versions & 1 rubygems