]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/user_preference_test.rb
Merge remote-tracking branch 'upstream/pull/3177'
[rails.git] / test / models / user_preference_test.rb
index 952289d940d20a30cf32df656c70bfb8ea0ccbfc..d6f1dcce5698acaed266f2c3da979e2dc0179c44 100644 (file)
@@ -15,7 +15,7 @@ class UserPreferenceTest < ActiveSupport::TestCase
   def test_check_valid_length
     key = "k"
     val = "v"
-    (1..255).each do |i|
+    [1, 255].each do |i|
       up = UserPreference.new
       up.user = create(:user)
       up.k = key * i