Browse Source

Applied rubocop cop 'Style/NumericLiterals'.

Thorsten Eckel 9 years ago
parent
commit
f18afea600
2 changed files with 2 additions and 2 deletions
  1. 1 1
      test/unit/assets_test.rb
  2. 1 1
      test/unit/object_cache_test.rb

+ 1 - 1
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

+ 1 - 1
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({})