Sha256: 1247f9dece9a4d3590e92c53ea1eedf27b238eb7ff952cd499876a3100850383

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

# encoding: UTF-8

require 'spec_helper'

describe Esearch::Mixin::Search, '#search' do
  subject { object.search(query) }

  let(:object) { class_under_test.new(connection) }

  let(:class_under_test) do
    Class.new do
      include Concord.new(:connection), Esearch::Mixin::Search
    end
  end

  let(:query) { double('Query') }
  let(:expected_arguments) { [query] }

  expect_to_run_command(Esearch::Command::Search)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
esearch-0.2.2 spec/unit/esearch/mixin/search/search_spec.rb