Sha256: ed7444a5b163278cfa2750155889451463f94e11e5ddb92b0e460631bb3076a0

Contents?: true

Size: 589 Bytes

Versions: 48

Compression:

Stored size: 589 Bytes

Contents

require 'spec_helper'

module Bug8302
  describe "Bug report 8302:" do
    class Foo
      def Foo.class_method(arg)
      end
  
      def instance_bar(arg)
      end
    end

    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

48 entries across 48 versions & 4 rubygems

Version Path
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_8302_spec.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rspec-mocks-2.5.0/spec/rspec/mocks/bug_report_8302_spec.rb
rspec-mocks-2.5.0 spec/rspec/mocks/bug_report_8302_spec.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_8302_spec.rb
rspec-mocks-2.4.0 spec/rspec/mocks/bug_report_8302_spec.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_8302_spec.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_8302_spec.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_8302_spec.rb
rspec-mocks-2.3.0 spec/rspec/mocks/bug_report_8302_spec.rb
vim-jar-0.0.3 bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_8302_spec.rb
vim-jar-0.0.2 bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_8302_spec.rb
vim-jar-0.0.1 bundler/ruby/1.8/gems/rspec-mocks-2.1.0/spec/rspec/mocks/bug_report_8302_spec.rb
rspec-mocks-2.2.0 spec/rspec/mocks/bug_report_8302_spec.rb
rspec-mocks-2.1.0 spec/rspec/mocks/bug_report_8302_spec.rb
rspec-mocks-2.0.1 spec/rspec/mocks/bug_report_8302_spec.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_8302_spec.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_8302_spec.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_8302_spec.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_8302_spec.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/rspec-mocks-2.0.0/spec/rspec/mocks/bug_report_8302_spec.rb