Sha256: 1934c1a5f431beb2e50d0ad8019c4f5b709faf8dbbb4e4484df65b1a134edaf1

Contents?: true

Size: 377 Bytes

Versions: 12

Compression:

Stored size: 377 Bytes

Contents

module Stump
  # A class to track the mocks and proxies that have been satisfied
  class Mocks
    class <<self
      def add(mock)
        @mocks ||= []
        @mocks << mock
      end
      
      def verify(mock)
        @mocks.delete(mock)
      end
      
      def failures
        @mocks
      end
      
      def clear!
        @mocks = []
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
jeremymcanally-stump-0.0.1 lib/stump/mocks.rb
jeremymcanally-stump-0.0.2 lib/stump/mocks.rb
spree-0.11.4 vendor/plugins/stump/lib/stump/mocks.rb
spree-0.11.3 vendor/plugins/stump/lib/stump/mocks.rb
spree-0.11.2 vendor/plugins/stump/lib/stump/mocks.rb
spree-0.11.1 vendor/plugins/stump/lib/stump/mocks.rb
rd_stump-0.0.2 lib/stump/mocks.rb
spree-0.11.0 vendor/plugins/stump/lib/stump/mocks.rb
spree-0.10.2 vendor/plugins/stump/lib/stump/mocks.rb
spree-0.10.1 vendor/plugins/stump/lib/stump/mocks.rb
spree-0.10.0 vendor/plugins/stump/lib/stump/mocks.rb
spree-0.10.0.beta vendor/plugins/stump/lib/stump/mocks.rb