Fix most auto-correctable rubocop issues
[rails.git] / test / models / trace_test.rb
index 4b3c5b0..3aaf75e 100644 (file)
@@ -39,17 +39,17 @@ class TraceTest < ActiveSupport::TestCase
 
   def test_validations
     trace_valid({})
-    trace_valid({:user_id => nil}, false)
-    trace_valid({:name => 'a'*255})
-    trace_valid({:name => 'a'*256}, false)
-    trace_valid({:description => nil}, false)
-    trace_valid({:description => 'a'*255})
-    trace_valid({:description => 'a'*256}, false)
-    trace_valid({:visibility => "private"})
-    trace_valid({:visibility => "public"})
-    trace_valid({:visibility => "trackable"})
-    trace_valid({:visibility => "identifiable"})
-    trace_valid({:visibility => "foo"}, false)
+    trace_valid({ :user_id => nil }, false)
+    trace_valid(:name => 'a' * 255)
+    trace_valid({ :name => 'a' * 256 }, false)
+    trace_valid({ :description => nil }, false)
+    trace_valid(:description => 'a' * 255)
+    trace_valid({ :description => 'a' * 256 }, false)
+    trace_valid(:visibility => "private")
+    trace_valid(:visibility => "public")
+    trace_valid(:visibility => "trackable")
+    trace_valid(:visibility => "identifiable")
+    trace_valid({ :visibility => "foo" }, false)
   end
 
   def test_tagstring
@@ -106,7 +106,7 @@ class TraceTest < ActiveSupport::TestCase
     assert_equal ".gpx.gz", gpx_files(:identifiable_trace_file).extension_name
   end
 
-private
+  private
 
   def check_query(query, traces)
     traces = traces.map { |t| gpx_files(t) }.sort