Browse Source

fix source indent of test/unit/query_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20200 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 3 years ago
parent
commit
b22dad45a8
1 changed files with 15 additions and 9 deletions
  1. 15
    9
      test/unit/query_test.rb

+ 15
- 9
test/unit/query_test.rb View File

@@ -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

Loading…
Cancel
Save