File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
elasticsearch-model/test/unit Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ def as_indexed_json(options={})
423
423
end
424
424
425
425
context "Checking for index existence" do
426
- context "the index exists" do
426
+ context "when the index exists" do
427
427
should "return true" do
428
428
indices = mock ( 'indices' , exists : true )
429
429
client = stub ( 'client' , indices : indices )
@@ -434,7 +434,7 @@ def as_indexed_json(options={})
434
434
end
435
435
end
436
436
437
- context "the index does not exists" do
437
+ context "when the index does not exists" do
438
438
should "return false" do
439
439
indices = mock ( 'indices' , exists : false )
440
440
client = stub ( 'client' , indices : indices )
@@ -445,7 +445,7 @@ def as_indexed_json(options={})
445
445
end
446
446
end
447
447
448
- context "the indices raises" do
448
+ context "when the indices API raises an error " do
449
449
should "return false" do
450
450
client = stub ( 'client' )
451
451
client . expects ( :indices ) . raises ( StandardError )
@@ -456,7 +456,7 @@ def as_indexed_json(options={})
456
456
end
457
457
end
458
458
459
- context "the indices raises" do
459
+ context "the indices.exists API raises an error " do
460
460
should "return false" do
461
461
indices = stub ( 'indices' )
462
462
client = stub ( 'client' )
You can’t perform that action at this time.
0 commit comments