Sha256: ecbc27ec0209381b012904a4acdbeafd1475dbdb4ed8f142e3773bf5bc7c2127

Contents?: true

Size: 193 Bytes

Versions: 12

Compression:

Stored size: 193 Bytes

Contents

module Bogus
  class TracksExistenceOfTestDoubles
    def track(object)
      doubles << object unless doubles.include?(object)
    end

    def doubles
      @doubles ||= []
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bogus-0.1.7 lib/bogus/stubbing/tracks_existence_of_test_doubles.rb
bogus-0.1.6 lib/bogus/stubbing/tracks_existence_of_test_doubles.rb
bogus-0.1.5 lib/bogus/stubbing/tracks_existence_of_test_doubles.rb
bogus-0.1.4 lib/bogus/stubbing/tracks_existence_of_test_doubles.rb
bogus-0.1.3 lib/bogus/tracks_existence_of_test_doubles.rb
bogus-0.1.2 lib/bogus/tracks_existence_of_test_doubles.rb
bogus-0.1.1 lib/bogus/tracks_existence_of_test_doubles.rb
bogus-0.1.0 lib/bogus/tracks_existence_of_test_doubles.rb
bogus-0.0.4 lib/bogus/tracks_existence_of_test_doubles.rb
bogus-0.0.3 lib/tracks_existence_of_test_doubles.rb
bogus-0.0.3.rc.2 lib/tracks_existence_of_test_doubles.rb
bogus-0.0.3.rc.1 lib/tracks_existence_of_test_doubles.rb