Skip to content

Commit cacea1a

Browse files
committed
[MODEL] Fixed failing expects blocks for Ruby 2.2
1 parent a15eae5 commit cacea1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

elasticsearch-model/test/unit/indexing_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ def as_indexed_json(options={})
336336
assert_equal 'bar', payload[:type]
337337
assert_equal '1', payload[:id]
338338
assert_equal({title: 'green'}, payload[:body][:doc])
339+
true
339340
end
340341

341342
instance.expects(:client).returns(client)
@@ -356,6 +357,7 @@ def as_indexed_json(options={})
356357
assert_equal '1', payload[:id]
357358
assert_equal({title: 'green'}, payload[:body][:doc])
358359
assert_equal true, payload[:refresh]
360+
true
359361
end
360362

361363
instance.expects(:client).returns(client)

0 commit comments

Comments
 (0)