Sha256: fd7f4ce30e56a0e706a8d35aa4b1a38fb8e4a9300e6c5a02934a9ba0908f9128

Contents?: true

Size: 765 Bytes

Versions: 14

Compression:

Stored size: 765 Bytes

Contents

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ae_easy-core-0.2.0 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.1.9 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.1.8 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.1.7 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.1.6 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.1.5 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.1.4 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.1.3 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.1.2 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.1.1 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.1.0 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.0.5 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.0.4 lib/ae_easy/core/mock/fake_seeder.rb
ae_easy-core-0.0.3 lib/ae_easy/core/mock/fake_seeder.rb