Sha256: bc70f56b6a14f98359103dd783eac75a3ddeaf95c601ad7f100a010f4704fa68
Contents?: true
Size: 385 Bytes
Versions: 21
Compression:
Stored size: 385 Bytes
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper") describe "instance_of" do it "applies to instances instantiated before the Double expection was created" do subject_class = Class.new subject = subject_class.new instance_of(subject_class) do |o| o.to_s {"Subject is stubbed"} end subject.to_s.should == "Subject is stubbed" end end
Version data entries
21 entries across 17 versions & 5 rubygems