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

Version Path
bogus-0.1.4 spec/bogus/stubbing/tracks_existence_of_test_doubles_spec.rb
bogus-0.1.3 spec/bogus/tracks_existence_of_test_doubles_spec.rb
bogus-0.1.2 spec/bogus/tracks_existence_of_test_doubles_spec.rb
bogus-0.1.1 spec/bogus/tracks_existence_of_test_doubles_spec.rb
bogus-0.1.0 spec/bogus/tracks_existence_of_test_doubles_spec.rb
bogus-0.0.4 spec/bogus/tracks_existence_of_test_doubles_spec.rb
bogus-0.0.3 spec/tracks_existence_of_test_doubles_spec.rb
bogus-0.0.3.rc.2 spec/tracks_existence_of_test_doubles_spec.rb
bogus-0.0.3.rc.1 spec/tracks_existence_of_test_doubles_spec.rb