diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-17 21:00:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-17 21:00:56 +0000 |
commit | 524cd689cf8743c389aab6a767a09383891dc5c6 (patch) | |
tree | 857334f93146211c3fc88e08ca8da6e5e7437746 /test/functional/versions_controller_test.rb | |
parent | b4eafd9ea8132534f75e3065c3d36345610e907a (diff) | |
download | redmine-524cd689cf8743c389aab6a767a09383891dc5c6.tar.gz redmine-524cd689cf8743c389aab6a767a09383891dc5c6.zip |
Project identifier is now used in URLs (instead of project id).
URLs with a project id will still be recognized.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1007 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/versions_controller_test.rb')
-rw-r--r-- | test/functional/versions_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb index 17ebd3518..3477c5edd 100644 --- a/test/functional/versions_controller_test.rb +++ b/test/functional/versions_controller_test.rb @@ -52,7 +52,7 @@ class VersionsControllerTest < Test::Unit::TestCase post :edit, :id => 2, :version => { :name => 'New version name', :effective_date => Date.today.strftime("%Y-%m-%d")} - assert_redirected_to 'projects/settings/1' + assert_redirected_to 'projects/settings/ecookbook' version = Version.find(2) assert_equal 'New version name', version.name assert_equal Date.today, version.effective_date @@ -61,7 +61,7 @@ class VersionsControllerTest < Test::Unit::TestCase def test_destroy @request.session[:user_id] = 2 post :destroy, :id => 2 - assert_redirected_to 'projects/settings/1' + assert_redirected_to 'projects/settings/ecookbook' assert_nil Version.find_by_id(2) end |