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
classiccms-0.6.3 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.2 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.2 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.1 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.1 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.0 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.6.0 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
gem_repackager-0.1.0 support/gems/rspec-mocks-2.11.1/spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.11.3 spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.5.17 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.5.17 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.5.16 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.5.16 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.5.15 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.5.15 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.5.14 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.5.14 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.5.13 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.5.13 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/rspec-mocks-2.11.1/spec/rspec/mocks/bug_report_496_spec.rb