es 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ module ES
29
29
  when :post
30
30
  @driver.http_post(url, data)
31
31
  when :delete
32
- @driver.http_post(url)
32
+ @driver.http_delete(url)
33
33
  end
34
34
  end
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module ES
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -27,7 +27,7 @@ describe ES::Connection do
27
27
  end
28
28
 
29
29
  it 'sends delete request with url to driver' do
30
- driver.should_receive(:http_post).with('http://localhost:9200/index').and_return(response)
30
+ driver.should_receive(:http_delete).with('http://localhost:9200/index').and_return(response)
31
31
 
32
32
  subject.request(:delete, 'index').should == response_body
33
33
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: es
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jan Suchal