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
syllable_counter-1.0.0 vendor/bundle/gems/rspec-mocks-2.14.3/spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.14.3 spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.14.2 spec/rspec/mocks/bug_report_496_spec.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-mocks-2.11.3/spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.14.1 spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.14.0 spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_496_spec.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.14.0.rc1 spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-mocks-2.9.0/spec/rspec/mocks/bug_report_496_spec.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-mocks-2.10.1/spec/rspec/mocks/bug_report_496_spec.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_496_spec.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/rspec-mocks-2.13.1/spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.13.1 spec/rspec/mocks/bug_report_496_spec.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/rspec-mocks-2.13.0/spec/rspec/mocks/bug_report_496_spec.rb
rspec-mocks-2.13.0 spec/rspec/mocks/bug_report_496_spec.rb