Sha256: cf2c9c9140aca0da4affa823ba597d7eef666c8139bf78a4ca43caa509133338
Contents?: true
Size: 311 Bytes
Versions: 10
Compression:
Stored size: 311 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
10 entries across 10 versions & 1 rubygems