test/unit/indices/open_test.rb in elasticsearch-api-0.4.0 vs test/unit/indices/open_test.rb in elasticsearch-api-0.4.1

- old
+ new

@@ -33,9 +33,18 @@ end.returns(FakeResponse.new) subject.indices.open :index => 'foo', :timeout => '1s' end + should "URL-escape the parts" do + subject.expects(:perform_request).with do |method, url, params, body| + assert_equal 'foo%5Ebar/_open', url + true + end.returns(FakeResponse.new) + + subject.indices.open :index => 'foo^bar' + end + end end end end