comparison test/functional/.svn/text-base/issue_moves_controller_test.rb.svn-base @ 119:8661b858af72

* Update to Redmine trunk rev 4705
author Chris Cannam
date Thu, 13 Jan 2011 14:12:06 +0000
parents 94944d00e43c
children cbce1fd3b1b7
comparison
equal deleted inserted replaced
39:150ceac17a8d 119:8661b858af72
1 require File.dirname(__FILE__) + '/../test_helper' 1 require File.expand_path('../../test_helper', __FILE__)
2 2
3 class IssueMovesControllerTest < ActionController::TestCase 3 class IssueMovesControllerTest < ActionController::TestCase
4 fixtures :all 4 fixtures :all
5 5
6 def setup 6 def setup
56 56
57 should "allow adding a note when moving" do 57 should "allow adding a note when moving" do
58 post :create, :ids => [1, 2], :notes => 'Moving two issues' 58 post :create, :ids => [1, 2], :notes => 'Moving two issues'
59 59
60 assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook' 60 assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook'
61 assert_equal 'Moving two issues', Issue.find(1).journals.last.notes 61 assert_equal 'Moving two issues', Issue.find(1).journals.sort_by(&:id).last.notes
62 assert_equal 'Moving two issues', Issue.find(2).journals.last.notes 62 assert_equal 'Moving two issues', Issue.find(2).journals.sort_by(&:id).last.notes
63 63
64 end 64 end
65 65
66 end 66 end
67 67