diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-30 09:41:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-30 09:41:58 +0000 |
commit | ff2532e52d406bb29509ee63b8329a70ddfc5c52 (patch) | |
tree | 6d64f04519f957d31fe0ec986f50935f95e8740a /test/unit/time_entry_activity_test.rb | |
parent | 78384d147a48a2d690c35f030232e232800dd919 (diff) | |
download | redmine-ff2532e52d406bb29509ee63b8329a70ddfc5c52.tar.gz redmine-ff2532e52d406bb29509ee63b8329a70ddfc5c52.zip |
Fixed test failures introduced by r14288 (#19656).
git-svn-id: http://svn.redmine.org/redmine/trunk@14291 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/time_entry_activity_test.rb')
-rw-r--r-- | test/unit/time_entry_activity_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/time_entry_activity_test.rb b/test/unit/time_entry_activity_test.rb index ab3a03530..8c6fef7aa 100644 --- a/test/unit/time_entry_activity_test.rb +++ b/test/unit/time_entry_activity_test.rb @@ -105,13 +105,13 @@ class TimeEntryActivityTest < ActiveSupport::TestCase def test_destroying_a_system_activity_should_reassign_children_activities project = Project.generate! + entries = [] + system_activity = TimeEntryActivity.create!(:name => 'Activity') + entries << TimeEntry.generate!(:project => project, :activity => system_activity) + project_activity = TimeEntryActivity.create!(:name => 'Activity', :project => project, :parent_id => system_activity.id) - - entries = [ - TimeEntry.generate!(:project => project, :activity => system_activity), - TimeEntry.generate!(:project => project, :activity => project_activity) - ] + entries << TimeEntry.generate!(:project => project.reload, :activity => project_activity) assert_difference 'TimeEntryActivity.count', -2 do assert_nothing_raised do |