Skip to content

Commit a13dd89

Browse files
committed
[MODEL] Fixed the naming for the indexing integration tests
1 parent e6cf128 commit a13dd89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

elasticsearch-model/test/unit/indexing_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def as_indexed_json(options={})
423423
end
424424

425425
context "Checking for index existence" do
426-
context "the index exists" do
426+
context "when the index exists" do
427427
should "return true" do
428428
indices = mock('indices', exists: true)
429429
client = stub('client', indices: indices)
@@ -434,7 +434,7 @@ def as_indexed_json(options={})
434434
end
435435
end
436436

437-
context "the index does not exists" do
437+
context "when the index does not exists" do
438438
should "return false" do
439439
indices = mock('indices', exists: false)
440440
client = stub('client', indices: indices)
@@ -445,7 +445,7 @@ def as_indexed_json(options={})
445445
end
446446
end
447447

448-
context "the indices raises" do
448+
context "when the indices API raises an error" do
449449
should "return false" do
450450
client = stub('client')
451451
client.expects(:indices).raises(StandardError)
@@ -456,7 +456,7 @@ def as_indexed_json(options={})
456456
end
457457
end
458458

459-
context "the indices raises" do
459+
context "the indices.exists API raises an error" do
460460
should "return false" do
461461
indices = stub('indices')
462462
client = stub('client')

0 commit comments

Comments
 (0)