diff --git a/.rubocop.yml b/.rubocop.yml index 4fafd5a5..85498d14 100755 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -39,7 +39,7 @@ Layout/ParameterAlignment: Enabled: false Metrics/PerceivedComplexity: Max: 45 -Metrics/LineLength: +Layout/LineLength: Max: 120 Style/MultilineBlockChain: Enabled: false diff --git a/test/test_id.rb b/test/test_id.rb index 2b89e60d..55e911c0 100644 --- a/test/test_id.rb +++ b/test/test_id.rb @@ -37,6 +37,15 @@ def test_generates_new_id end end + def test_generates_different_ids + before = '' + 500.times do + id = Zold::Id.new + assert id.to_s != before.to_s + before = id + end + end + def test_list_of_banned_ids_is_not_empty assert(!Zold::Id::BANNED.empty?) end