Applied rubocop cop 'Style/NumericLiterals'.

This commit is contained in:
Thorsten Eckel 2015-07-03 17:32:48 +02:00
parent deb4dfdb9c
commit f18afea600
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

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