Skip to content

Commit 15101d6

Browse files
author
Anna
committed
ActiveRecord::Result now has an empty? method
1 parent b2cb614 commit 15101d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cases/connection_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def execute_with_deadlock_exception(sql, *args)
237237

238238
should 'testing #activity_stats' do
239239
stats = @connection.activity_stats
240-
assert stats.length > 0
240+
assert !stats.empty?
241241
assert stats.all? { |s| s.has_key?("session_id") }
242242
assert stats.all? { |s| s["database"] == @connection.current_database }
243243
end

0 commit comments

Comments
 (0)