]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/way_tag_test.rb
Cleanup trailing whitespace
[rails.git] / test / models / way_tag_test.rb
index 4d6116159d49ccc3c908610cbdc47d23e9140f38..498c1ff10f890c5b86ce501966f07f4b9af329e0 100644 (file)
@@ -2,11 +2,11 @@ require 'test_helper'
 
 class WayTagTest < ActiveSupport::TestCase
   api_fixtures
-  
+
   def test_way_tag_count
     assert_equal 5, WayTag.count
   end
-  
+
   def test_length_key_valid
     key = "k"
     (0..255).each do |i|
@@ -17,7 +17,7 @@ class WayTagTest < ActiveSupport::TestCase
       assert tag.valid?
     end
   end
-  
+
   def test_length_value_valid
     val = "v"
     (0..255).each do |i|
@@ -28,7 +28,7 @@ class WayTagTest < ActiveSupport::TestCase
       assert tag.valid?
     end
   end
-  
+
   def test_length_key_invalid
     ["k"*256].each do |i|
       tag = WayTag.new
@@ -39,7 +39,7 @@ class WayTagTest < ActiveSupport::TestCase
       assert tag.errors[:k].any?
     end
   end
-  
+
   def test_length_value_invalid
     ["v"*256].each do |i|
       tag = WayTag.new
@@ -50,13 +50,13 @@ class WayTagTest < ActiveSupport::TestCase
       assert tag.errors[:v].any?
     end
   end
-  
+
   def test_empty_tag_invalid
     tag = WayTag.new
     assert !tag.valid?, "Empty way tag should be invalid"
     assert tag.errors[:way].any?
   end
-  
+
   def test_uniqueness
     tag = WayTag.new
     tag.way_id = current_way_tags(:t1).way_id