mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 08:16:03 +01:00
cleanup: rubocop: fix Layout/AlignArguments in test/functional/issues_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18951 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -516,21 +516,18 @@ class IssuesControllerTest < Redmine::ControllerTest
|
|||||||
|
|
||||||
def test_index_with_query_grouped_by_tracker_in_normal_order
|
def test_index_with_query_grouped_by_tracker_in_normal_order
|
||||||
3.times {|i| Issue.generate!(:tracker_id => (i + 1))}
|
3.times {|i| Issue.generate!(:tracker_id => (i + 1))}
|
||||||
|
|
||||||
get :index, :params => {
|
get :index, :params => {
|
||||||
:set_filter => 1,
|
:set_filter => 1,
|
||||||
:group_by => 'tracker',
|
:group_by => 'tracker',
|
||||||
:sort => 'id:desc'
|
:sort => 'id:desc'
|
||||||
}
|
}
|
||||||
assert_response :success
|
assert_response :success
|
||||||
|
|
||||||
assert_equal ["Bug", "Feature request", "Support request"],
|
assert_equal ["Bug", "Feature request", "Support request"],
|
||||||
css_select("tr.issue td.tracker").map(&:text).uniq
|
css_select("tr.issue td.tracker").map(&:text).uniq
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_index_with_query_grouped_by_tracker_in_reverse_order
|
def test_index_with_query_grouped_by_tracker_in_reverse_order
|
||||||
3.times {|i| Issue.generate!(:tracker_id => (i + 1))}
|
3.times {|i| Issue.generate!(:tracker_id => (i + 1))}
|
||||||
|
|
||||||
get :index, :params => {
|
get :index, :params => {
|
||||||
:set_filter => 1,
|
:set_filter => 1,
|
||||||
:group_by => 'tracker',
|
:group_by => 'tracker',
|
||||||
@@ -538,7 +535,6 @@ class IssuesControllerTest < Redmine::ControllerTest
|
|||||||
:sort => 'id:desc,tracker:desc'
|
:sort => 'id:desc,tracker:desc'
|
||||||
}
|
}
|
||||||
assert_response :success
|
assert_response :success
|
||||||
|
|
||||||
assert_equal ["Bug", "Feature request", "Support request"].reverse,
|
assert_equal ["Bug", "Feature request", "Support request"].reverse,
|
||||||
css_select("tr.issue td.tracker").map(&:text).uniq
|
css_select("tr.issue td.tracker").map(&:text).uniq
|
||||||
end
|
end
|
||||||
@@ -3360,7 +3356,8 @@ class IssuesControllerTest < Redmine::ControllerTest
|
|||||||
assert_redirected_to :controller => 'issues', :action => 'new', :project_id => 'ecookbook', :issue => {:tracker_id => 3}
|
assert_redirected_to :controller => 'issues', :action => 'new', :project_id => 'ecookbook', :issue => {:tracker_id => 3}
|
||||||
assert_not_nil flash[:notice], "flash was not set"
|
assert_not_nil flash[:notice], "flash was not set"
|
||||||
assert_select_in flash[:notice],
|
assert_select_in flash[:notice],
|
||||||
'a[href=?][title=?]', "/issues/#{issue.id}", "This is first issue", :text => "##{issue.id}"
|
'a[href=?][title=?]', "/issues/#{issue.id}",
|
||||||
|
"This is first issue", :text => "##{issue.id}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_post_create_without_custom_fields_param
|
def test_post_create_without_custom_fields_param
|
||||||
@@ -6276,12 +6273,10 @@ class IssuesControllerTest < Redmine::ControllerTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert_response :success
|
assert_response :success
|
||||||
|
|
||||||
assert_select '#errorExplanation span',
|
assert_select '#errorExplanation span',
|
||||||
:text => "Failed to save 2 issue(s) on 3 selected: ##{issue1.id}, ##{issue2.id}."
|
:text => "Failed to save 2 issue(s) on 3 selected: ##{issue1.id}, ##{issue2.id}."
|
||||||
assert_select '#errorExplanation ul li',
|
assert_select '#errorExplanation ul li',
|
||||||
:text => "Due date must be greater than start date: ##{issue1.id}, ##{issue2.id}"
|
:text => "Due date must be greater than start date: ##{issue1.id}, ##{issue2.id}"
|
||||||
|
|
||||||
assert_select '#bulk-selection li', 2
|
assert_select '#bulk-selection li', 2
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user