Fix most auto-correctable rubocop issues
[rails.git] / test / models / relation_tag_test.rb
index ea09557..9db80f0 100644 (file)
@@ -12,7 +12,7 @@ class RelationTagTest < ActiveSupport::TestCase
     (0..255).each do |i|
       tag = RelationTag.new
       tag.relation_id = 1
-      tag.k = key*i
+      tag.k = key * i
       tag.v = "v"
       assert tag.valid?
     end
@@ -24,13 +24,13 @@ class RelationTagTest < ActiveSupport::TestCase
       tag = RelationTag.new
       tag.relation_id = 1
       tag.k = "k"
-      tag.v = val*i
+      tag.v = val * i
       assert tag.valid?
     end
   end
 
   def test_length_key_invalid
-    ["k"*256].each do |i|
+    ["k" * 256].each do |i|
       tag = RelationTag.new
       tag.relation_id = 1
       tag.k = i
@@ -41,7 +41,7 @@ class RelationTagTest < ActiveSupport::TestCase
   end
 
   def test_length_value_invalid
-    ["v"*256].each do |i|
+    ["v" * 256].each do |i|
       tag = RelationTag.new
       tag.relation_id = 1
       tag.k = "k"
@@ -64,7 +64,7 @@ class RelationTagTest < ActiveSupport::TestCase
     tag.v = current_relation_tags(:t1).v
     assert tag.new_record?
     assert !tag.valid?
-    assert_raise(ActiveRecord::RecordInvalid) {tag.save!}
+    assert_raise(ActiveRecord::RecordInvalid) { tag.save! }
     assert tag.new_record?
   end