Sha256: 29f3686b86ab84c921bd30cde59a66471583b639cc47745a1037bd6c1b3b92b3

Contents?: true

Size: 349 Bytes

Versions: 15

Compression:

Stored size: 349 Bytes

Contents

require_relative "../test_utils"

module Metacrunch
  class TestUtils::DummySource

    def initialize(count_until: 10)
      @count_until = count_until
    end

    def each
      @each_called = true

      (1..@count_until).each do |number|
        yield({number: number})
      end
    end

  end

  class TestUtils::InvalidDummySource
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
metacrunch-4.2.0 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-4.1.1 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-4.1.0 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-4.0.3 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-4.0.2 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-4.0.1 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-3.1.4 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-3.1.3 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-3.1.2 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-3.1.1 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-3.1.0 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-3.0.3 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-3.0.2 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-3.0.1 lib/metacrunch/test_utils/dummy_source.rb
metacrunch-3.0.0 lib/metacrunch/test_utils/dummy_source.rb