"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/unit/query_test.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

query_test.rb  (redmine-4.0.3):query_test.rb  (redmine-4.0.4)
skipping to change at line 2230 skipping to change at line 2230
end end
def test_project_statuses_values_should_return_only_active_and_closed_statuses def test_project_statuses_values_should_return_only_active_and_closed_statuses
set_language_if_valid 'en' set_language_if_valid 'en'
query = IssueQuery.new(:project => nil, :name => '_') query = IssueQuery.new(:project => nil, :name => '_')
project_status_filter = query.available_filters['project.status'] project_status_filter = query.available_filters['project.status']
assert_not_nil project_status_filter assert_not_nil project_status_filter
assert_equal [["active", "1"], ["closed", "5"]], project_status_filter[:valu es] assert_equal [["active", "1"], ["closed", "5"]], project_status_filter[:valu es]
end end
def test_as_params_should_serialize_query
query = IssueQuery.new(name: "_")
query.add_filter('subject', '!~', ['asdf'])
query.group_by = 'tracker'
query.totalable_names = %w(estimated_hours)
query.column_names = %w(id subject estimated_hours)
assert hsh = query.as_params
new_query = IssueQuery.build_from_params(hsh)
assert_equal query.filters, new_query.filters
assert_equal query.group_by, new_query.group_by
assert_equal query.column_names, new_query.column_names
assert_equal query.totalable_names, new_query.totalable_names
end
end end
 End of changes. 1 change blocks. 
0 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)