From f18afea600c627a3148cca6378d1fc36d4b9bfd2 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 3 Jul 2015 17:32:48 +0200 Subject: [PATCH] Applied rubocop cop 'Style/NumericLiterals'. --- test/unit/assets_test.rb | 2 +- test/unit/object_cache_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/assets_test.rb b/test/unit/assets_test.rb index 46dd6eaa9..fc7a33be8 100644 --- a/test/unit/assets_test.rb +++ b/test/unit/assets_test.rb @@ -86,7 +86,7 @@ class AssetsTest < ActiveSupport::TestCase # touch org, check if user1 has changed sleep 2 org2 = Organization.find(org.id) - org2.note = "some note...#{rand(9999999999999)}" + org2.note = "some note...#{rand(9_999_999_999_999)}" org2.save attributes = org2.attributes_with_associations diff --git a/test/unit/object_cache_test.rb b/test/unit/object_cache_test.rb index 6af04c1fc..5ca3cb821 100644 --- a/test/unit/object_cache_test.rb +++ b/test/unit/object_cache_test.rb @@ -54,7 +54,7 @@ class ObjectCacheTest < ActiveSupport::TestCase # update group group1 = groups.first - group1.note = "some note #{rand(9999999999)}" + group1.note = "some note #{rand(9_999_999_999)}" group1.save assets = user1.assets({})