diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-27 00:08:32 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-27 00:08:32 +0000 |
commit | 45289b9791c441b1db9e0c37638a9ff7194e54e8 (patch) | |
tree | 79a9a2f6ff6431f020b0cfe7a6a7888c951393ed /test/unit/issue_status_test.rb | |
parent | c47940f4a56e2d661b166ef316990d5e6af58a68 (diff) | |
download | redmine-45289b9791c441b1db9e0c37638a9ff7194e54e8.tar.gz redmine-45289b9791c441b1db9e0c37638a9ff7194e54e8.zip |
remove unneeded Relation#all from IssueStatusTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12711 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_status_test.rb')
-rw-r--r-- | test/unit/issue_status_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/issue_status_test.rb b/test/unit/issue_status_test.rb index 4ab94c14a..1f86dcdb7 100644 --- a/test/unit/issue_status_test.rb +++ b/test/unit/issue_status_test.rb @@ -104,10 +104,9 @@ class IssueStatusTest < ActiveSupport::TestCase def test_update_done_ratios_with_issue_done_ratio_set_to_issue_status_should_update_issues IssueStatus.find(1).update_attribute(:default_done_ratio, 50) - with_settings :issue_done_ratio => 'issue_status' do IssueStatus.update_issue_done_ratios - issues = Issue.where(:status_id => 1).all + issues = Issue.where(:status_id => 1) assert_equal [50], issues.map {|issue| issue.read_attribute(:done_ratio)}.uniq end end |