Sha256: 3709f6c9c904a47f1f344c6068f14983433a41dcbfbb5301434568889abf1c1a

Contents?: true

Size: 312 Bytes

Versions: 101

Compression:

Stored size: 312 Bytes

Contents

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

module Bug7611
  class Foo
  end

  class Bar < Foo
  end

  describe "A Partial Mock" do
    it "should respect subclasses" do
      Foo.stub!(:new).and_return(Object.new)
    end

    it "should" do
      Bar.new.class.should == Bar
    end 
  end
end

Version data entries

101 entries across 101 versions & 15 rubygems

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