Sha256: ce8121698ba52bb61b9c573e5c069c9b20fa3d585983dba5ffcadffd141ab285

Contents?: true

Size: 277 Bytes

Versions: 253

Compression:

Stored size: 277 Bytes

Contents

require 'spec_helper'

module BugReport496
  describe "a message expectation on a base class object" do
    class BaseClass
    end

    class SubClass < BaseClass
    end

    it "is received" do
      BaseClass.should_receive(:new).once
      SubClass.new
    end
  end
end

Version data entries

253 entries across 199 versions & 29 rubygems

Version Path
remq-0.0.4 vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_496_spec.rb
remq-0.0.3 vendor/bundle/gems/rspec-mocks-2.12.2/spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.12.2 spec/rspec/mocks/bug_report_496_spec.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.9 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.9 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.12.1 spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.12.0 spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.8 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.8 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.7 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.7 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.11.3/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.6 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.6 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.5 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.5 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.4 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.4 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.3 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb