From: Jean-Philippe Lang Date: Wed, 18 Apr 2012 19:33:29 +0000 (+0000) Subject: Additional test for Tracker model. X-Git-Tag: 2.0.0~175 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=327a74b4066a3cf7272435750baa1a277a502004;p=redmine.git Additional test for Tracker model. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9439 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/tracker_test.rb b/test/unit/tracker_test.rb index 72c5a9d03..735f7e868 100644 --- a/test/unit/tracker_test.rb +++ b/test/unit/tracker_test.rb @@ -46,4 +46,8 @@ class TrackerTest < ActiveSupport::TestCase Workflow.delete_all("tracker_id = 1") assert_equal [], Tracker.find(1).issue_statuses end + + def test_issue_statuses_should_be_empty_for_new_record + assert_equal [], Tracker.new.issue_statuses + end end