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

Version Path
dchelimsky-rspec-1.1.10 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.11.1 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.11.2 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.11.3 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.11.4 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.11.5 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.11.6 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.11.7 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.11 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.12 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.99.1 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.99.13 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.99.2 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.99.3 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.99.4 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.99.5 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.99.6 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.99.7 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.99.8 spec/spec/mocks/bug_report_8302_spec.rb
dchelimsky-rspec-1.1.99.9 spec/spec/mocks/bug_report_8302_spec.rb