mirror of
https://github.com/redmine/redmine.git
synced 2025-12-24 01:10:38 +01:00
Adds a Setting to control how an Issue's done_ratio is calculated:
* Issue field (default) - the done_ratio field for the Issue * Issue status - uses the Issue Status's value #4274 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3151 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -70,4 +70,27 @@ class IssueStatusesControllerTest < ActionController::TestCase
|
||||
assert_redirected_to 'issue_statuses/list'
|
||||
assert_not_nil IssueStatus.find_by_id(1)
|
||||
end
|
||||
|
||||
context "on POST to :update_issue_done_ratio" do
|
||||
context "with Setting.issue_done_ratio using the issue_field" do
|
||||
setup do
|
||||
Setting.issue_done_ratio = 'issue_field'
|
||||
post :update_issue_done_ratio
|
||||
end
|
||||
|
||||
should_set_the_flash_to /not updated/
|
||||
should_redirect_to('the list') { '/issue_statuses/list' }
|
||||
end
|
||||
|
||||
context "with Setting.issue_done_ratio using the issue_status" do
|
||||
setup do
|
||||
Setting.issue_done_ratio = 'issue_status'
|
||||
post :update_issue_done_ratio
|
||||
end
|
||||
|
||||
should_set_the_flash_to /Issue done ratios updated/
|
||||
should_redirect_to('the list') { '/issue_statuses/list' }
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user