Sha256: c5df820bc61850a933bd4dd679a17093b166355ba7cc870613fd90d940514410
Contents?: true
Size: 561 Bytes
Versions: 9
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' describe Bogus::TracksExistenceOfTestDoubles do let(:tracker) { Bogus::TracksExistenceOfTestDoubles.new } it "returns an empty double list with nothing tracked" do tracker.doubles.should == [] end it "lists the added test doubles in order without duplicates" do foo = "foo" bar = 1 baz = Object.new tracker.track foo tracker.track bar tracker.track foo tracker.track baz tracker.track baz tracker.track bar tracker.track foo tracker.doubles.should == [foo, bar, baz] end end
Version data entries
9 entries across 9 versions & 1 rubygems