Sha256: 7b4528e07a10ade8e3cba607e518ad82f95ba64132602df04e66ee86fe794576
Contents?: true
Size: 274 Bytes
Versions: 38
Compression:
Stored size: 274 Bytes
Contents
require 'spec_helper' module Bug7611 describe "A Partial Mock" do class Foo; end class Bar < Foo; end it "respects subclasses" do Foo.stub(:new).and_return(Object.new) end it "should" do expect(Bar.new.class).to eq Bar end end end
Version data entries
38 entries across 38 versions & 8 rubygems