test/unit/indices/delete_alias_test.rb in elasticsearch-api-0.4.0 vs test/unit/indices/delete_alias_test.rb in elasticsearch-api-0.4.1
- old
+ new
@@ -29,9 +29,18 @@
end.returns(FakeResponse.new)
subject.indices.delete_alias :index => 'foo', :name => 'bar'
end
+ should "URL-escape the parts" do
+ subject.expects(:perform_request).with do |method, url, params, body|
+ assert_equal 'foo%5Ebar/_alias/bar%2Fbam', url
+ true
+ end.returns(FakeResponse.new)
+
+ subject.indices.delete_alias :index => 'foo^bar', :name => 'bar/bam'
+ end
+
end
end
end
end