Sha256: e2614ea15787f9a6fc3db1f882a59bc0a68d9cc67c9eca586495c535a573ee60

Contents?: true

Size: 444 Bytes

Versions: 35

Compression:

Stored size: 444 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper.rb'

module BugReport496
  class BaseClass
  end

  class SubClass < BaseClass
  end

  describe "a message expectation on a base class object" do
    it "should correctly pick up message sent to it subclass" do
      pending("fix for http://rspec.lighthouseapp.com/projects/5645/tickets/496") do
        BaseClass.should_receive(:new).once
        SubClass.new
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 5 rubygems

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