summaryrefslogtreecommitdiffstats
path: root/test/unit/query_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-26 13:35:42 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-26 13:35:42 +0000
commitb22dad45a8572e505a8b824831fa3d9c4321429f (patch)
tree8f0ed4e2e0fcc4a3ed27667cd3c8965ac7e588df /test/unit/query_test.rb
parent3b2d850c0712d955281f0ba8f58ac80ccb6b995f (diff)
downloadredmine-b22dad45a8572e505a8b824831fa3d9c4321429f.tar.gz
redmine-b22dad45a8572e505a8b824831fa3d9c4321429f.zip
fix source indent of test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20200 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/query_test.rb')
-rw-r--r--test/unit/query_test.rb24
1 files changed, 15 insertions, 9 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index 4b8dce23a..7c72cf268 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -2213,15 +2213,21 @@ class QueryTest < ActiveSupport::TestCase
end
def test_build_from_params_should_not_update_query_with_nil_param_values
- q = IssueQuery.create!(:name => 'Query',
- :type => "IssueQuery",
- :user => User.find(7),
- :filters => {"status_id" => {:values => ["1"], :operator => "o"}},
- :column_names => [:tracker, :status],
- :sort_criteria => ['id', 'asc'],
- :group_by => "project",
- :options => { :totalable_names=>[:estimated_hours], :draw_relations => '1', :draw_progress_line => '1' }
- )
+ q =
+ IssueQuery.create!(
+ :name => 'Query',
+ :type => "IssueQuery",
+ :user => User.find(7),
+ :filters => {"status_id" => {:values => ["1"], :operator => "o"}},
+ :column_names => [:tracker, :status],
+ :sort_criteria => ['id', 'asc'],
+ :group_by => "project",
+ :options => {
+ :totalable_names=>[:estimated_hours],
+ :draw_relations => '1',
+ :draw_progress_line => '1'
+ }
+ )
old_attributes = q.attributes
q.build_from_params({})
assert_equal old_attributes, q.attributes