Applied rubocop cop 'Style/NumericLiterals'.
This commit is contained in:
parent
deb4dfdb9c
commit
f18afea600
2 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ class AssetsTest < ActiveSupport::TestCase
|
||||||
# touch org, check if user1 has changed
|
# touch org, check if user1 has changed
|
||||||
sleep 2
|
sleep 2
|
||||||
org2 = Organization.find(org.id)
|
org2 = Organization.find(org.id)
|
||||||
org2.note = "some note...#{rand(9999999999999)}"
|
org2.note = "some note...#{rand(9_999_999_999_999)}"
|
||||||
org2.save
|
org2.save
|
||||||
|
|
||||||
attributes = org2.attributes_with_associations
|
attributes = org2.attributes_with_associations
|
||||||
|
|
|
@ -54,7 +54,7 @@ class ObjectCacheTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
# update group
|
# update group
|
||||||
group1 = groups.first
|
group1 = groups.first
|
||||||
group1.note = "some note #{rand(9999999999)}"
|
group1.note = "some note #{rand(9_999_999_999)}"
|
||||||
group1.save
|
group1.save
|
||||||
|
|
||||||
assets = user1.assets({})
|
assets = user1.assets({})
|
||||||
|
|
Loading…
Reference in a new issue