comparison test/functional/project_enumerations_controller_test.rb @ 120:cd2282d2aa55 cannam

Merge from the default branch. Note that this is not a valid SVN repository any more (use default, redmine-1.1 etc for SVN updates).
author Chris Cannam
date Thu, 13 Jan 2011 14:33:08 +0000
parents af80e5618e9b 8661b858af72
children 5e80956cc792
comparison
equal deleted inserted replaced
118:b859cc0c4fa1 120:cd2282d2aa55
173 :project => Project.find(1), 173 :project => Project.find(1),
174 :active => true 174 :active => true
175 }) 175 })
176 assert project_activity.save 176 assert project_activity.save
177 assert TimeEntry.update_all("activity_id = '#{project_activity.id}'", ["project_id = ? AND activity_id = ?", 1, 9]) 177 assert TimeEntry.update_all("activity_id = '#{project_activity.id}'", ["project_id = ? AND activity_id = ?", 1, 9])
178 assert 3, TimeEntry.find_all_by_activity_id_and_project_id(project_activity.id, 1).size 178 assert_equal 3, TimeEntry.find_all_by_activity_id_and_project_id(project_activity.id, 1).size
179 179
180 delete :destroy, :project_id => 1 180 delete :destroy, :project_id => 1
181 assert_response :redirect 181 assert_response :redirect
182 assert_redirected_to '/projects/ecookbook/settings/activities' 182 assert_redirected_to '/projects/ecookbook/settings/activities'
183 183