Sha256: c2ad9b8d6b1e69a938eed0a4623fc00847e429d87620779df16a4cb23bb6bba1

Contents?: true

Size: 775 Bytes

Versions: 4

Compression:

Stored size: 775 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dh_easy-core-0.3.3 lib/dh_easy/core/mock/fake_finisher.rb
dh_easy-core-0.3.2 lib/dh_easy/core/mock/fake_finisher.rb
dh_easy-core-0.3.1 lib/dh_easy/core/mock/fake_finisher.rb
dh_easy-core-0.2.2 lib/dh_easy/core/mock/fake_finisher.rb