Skip to content

Commit 7373707

Browse files
committed
Further update to show_disk_loc test
1 parent 76d6df1 commit 7373707

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/functional/collection_test.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,9 +1828,8 @@ def test_show_disk_loc
18281828
@test.save({:a => 1})
18291829
@test.save({:a => 2})
18301830
assert @test.find({:a => 1}, :show_disk_loc => true).show_disk_loc
1831-
if @version < '3.0.0' || @version >= '3.0.3'
1832-
assert @test.find({:a => 1}, :show_disk_loc => true).next['$diskLoc']
1833-
end
1831+
doc = @test.find({:a => 1}, :show_disk_loc => true).next
1832+
assert (doc['$diskLoc'] || doc['$recordId'])
18341833
@test.remove
18351834
end
18361835

0 commit comments

Comments
 (0)