Sha256: d535f922bbcb9ff4fdfb23048f80faffba286a754fb8db8d5ce664a017a3a703

Contents?: true

Size: 561 Bytes

Versions: 91

Compression:

Stored size: 561 Bytes

Contents

require 'spec_helper'

describe Picky::Client do
  
  let(:client) { described_class.new path: '/' }
  
  describe 'replace' do
    it 'delegates to the request method' do
      client.should_receive(:send_off).once.with anything, :some_index_name, :some_data
    
      client.replace :some_index_name, :some_data
    end
  end
  
  describe 'remove' do
    it 'delegates to the request method' do
      client.should_receive(:send_off).once.with anything, :some_index_name, :some_data
    
      client.remove :some_index_name, :some_data
    end
  end
  
end

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
picky-client-4.31.3 spec/picky-client/client_index_spec.rb
picky-client-4.31.2 spec/picky-client/client_index_spec.rb
picky-client-4.31.1 spec/picky-client/client_index_spec.rb
picky-client-4.31.0 spec/picky-client/client_index_spec.rb
picky-client-4.30.0 spec/picky-client/client_index_spec.rb
picky-client-4.29.0 spec/picky-client/client_index_spec.rb
picky-client-4.28.1 spec/picky-client/client_index_spec.rb
picky-client-4.27.1 spec/picky-client/client_index_spec.rb
picky-client-4.27.0 spec/picky-client/client_index_spec.rb
picky-client-4.26.2 spec/picky-client/client_index_spec.rb
picky-client-4.26.1 spec/picky-client/client_index_spec.rb
picky-client-4.26.0 spec/picky-client/client_index_spec.rb
picky-client-4.25.3 spec/picky-client/client_index_spec.rb
picky-client-4.25.2 spec/picky-client/client_index_spec.rb
picky-client-4.25.1 spec/picky-client/client_index_spec.rb
picky-client-4.25.0 spec/picky-client/client_index_spec.rb
picky-client-4.24.0 spec/picky-client/client_index_spec.rb
picky-client-4.23.2 spec/picky-client/client_index_spec.rb
picky-client-4.23.1 spec/picky-client/client_index_spec.rb
picky-client-4.23.0 spec/picky-client/client_index_spec.rb