@@ -24,10 +24,10 @@ class Elasticsearch::Extensions::AnsiTest < Elasticsearch::Test::UnitTestCase
2424 @client = Elasticsearch ::Client . new
2525 @client . stubs ( :perform_request ) . returns \
2626 Elasticsearch ::Transport ::Transport ::Response . new ( 200 , { "ok" => true , "status" => 200 , "name" => "Hit-Maker" ,
27- "version" => { "number" => "0.90.7" ,
28- "build_hash" => "abc123" ,
29- "build_timestamp" => "2013-11-13T12:06:54Z" , "build_snapshot" => false , "lucene_version" => "4.5.1" } ,
30- "tagline" => "You Know, for Search" } )
27+ "version" => { "number" => "0.90.7" ,
28+ "build_hash" => "abc123" ,
29+ "build_timestamp" => "2013-11-13T12:06:54Z" , "build_snapshot" => false , "lucene_version" => "4.5.1" } ,
30+ "tagline" => "You Know, for Search" } )
3131 end
3232
3333 should "wrap the response" do
@@ -47,7 +47,7 @@ class Elasticsearch::Extensions::AnsiTest < Elasticsearch::Test::UnitTestCase
4747 should "call the 'awesome_inspect' method when available and no handler found" do
4848 @client . stubs ( :perform_request ) . returns \
4949 Elasticsearch ::Transport ::Transport ::Response . new ( 200 , { "index-1" => { "aliases" => { } } } )
50- response = @client . indices . get_aliases
50+ response = @client . cat . aliases
5151
5252 response . instance_eval do
5353 def awesome_inspect ; "---PRETTY---" ; end
@@ -58,7 +58,7 @@ def awesome_inspect; "---PRETTY---"; end
5858 should "call `to_s` method when no pretty printer or handler found" do
5959 @client . stubs ( :perform_request ) . returns \
6060 Elasticsearch ::Transport ::Transport ::Response . new ( 200 , { "index-1" => { "aliases" => { } } } )
61- response = @client . indices . get_aliases
61+ response = @client . cat . aliases
6262
6363 assert_equal '{"index-1"=>{"aliases"=>{}}}' , response . to_ansi
6464 end
0 commit comments