]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of test/unit/query_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 26 Oct 2020 13:35:50 +0000 (13:35 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 26 Oct 2020 13:35:50 +0000 (13:35 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20201 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/query_test.rb

index 7c72cf2688a726e43b00d8ce2760bd37d3a5dc04..a2803d2cde33e8e29b46f37e16c917dce6f61fe5 100644 (file)
@@ -71,9 +71,9 @@ class QueryTest < ActiveSupport::TestCase
   def test_available_filters_with_custom_fields_should_be_ordered
     set_language_if_valid 'en'
     UserCustomField.create!(
-              :name => 'order test', :field_format => 'string',
-              :is_for_all => true, :is_filter => true
-            )
+      :name => 'order test', :field_format => 'string',
+      :is_for_all => true, :is_filter => true
+    )
     query = IssueQuery.new
     expected_order = [
       "Searchable field",
@@ -142,9 +142,8 @@ class QueryTest < ActiveSupport::TestCase
   end
 
   def find_issues_with_query(query)
-    Issue.joins(:status, :tracker, :project, :priority).where(
-         query.statement
-       ).to_a
+    Issue.joins(:status, :tracker, :project, :priority).
+      where(query.statement).to_a
   end
 
   def assert_find_issues_with_query_is_successful(query)