Sha256: c70a540e7a674421849875f3811c82d57bf372f424613294442e85746ca19ee1

Contents?: true

Size: 774 Bytes

Versions: 1

Compression:

Stored size: 774 Bytes

Contents

module DhEasy
  module Core
    module Mock
      # Fake seeder that emulates `Datahen` seeder executor.
      class FakeSeeder
        include DhEasy::Core::Mock::FakeExecutor

        # Fake seeder exposed methods to isolated context.
        # @private
        #
        # @return [Array]
        def self.exposed_methods
          real_methods = Datahen::Scraper::RubySeederExecutor.exposed_methods.uniq
          mock_methods = [
            :outputs,
            :pages,
            :save_pages,
            :save_outputs,
            :find_output,
            :find_outputs,
            :finish
          ].freeze
          DhEasy::Core::Mock::FakeExecutor.check_compatibility real_methods, mock_methods
          mock_methods
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dh_easy-core-0.3.4 lib/dh_easy/core/mock/fake_seeder.rb