Sha256: 67fbdb49a9e1c496fc4d8227ed4885220a7d6533253d52bb92ad48c479a2b39d
Contents?: true
Size: 612 Bytes
Versions: 101
Compression:
Stored size: 612 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
101 entries across 101 versions & 15 rubygems