diff options
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index ec5d40a77..371e28424 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -148,7 +148,7 @@ class ProjectsControllerTest < Test::Unit::TestCase @request.session[:user_id] = 2 # manager post :edit, :id => 1, :project => {:name => 'Test changed name', :issue_custom_field_ids => ['']} - assert_redirected_to 'projects/settings/ecookbook' + assert_redirected_to 'projects/ecookbook/settings' project = Project.find(1) assert_equal 'Test changed name', project.name end @@ -214,7 +214,7 @@ class ProjectsControllerTest < Test::Unit::TestCase post :add_file, :id => 1, :version_id => '', :attachments => {'1' => {'file' => test_uploaded_file('testfile.txt', 'text/plain')}} end - assert_redirected_to 'projects/list_files/ecookbook' + assert_redirected_to 'projects/ecookbook/files' a = Attachment.find(:first, :order => 'created_on DESC') assert_equal 'testfile.txt', a.filename assert_equal Project.find(1), a.container @@ -245,7 +245,7 @@ class ProjectsControllerTest < Test::Unit::TestCase post :add_file, :id => 1, :version_id => '2', :attachments => {'1' => {'file' => test_uploaded_file('testfile.txt', 'text/plain')}} end - assert_redirected_to 'projects/list_files/ecookbook' + assert_redirected_to 'projects/ecookbook/files' a = Attachment.find(:first, :order => 'created_on DESC') assert_equal 'testfile.txt', a.filename assert_equal Version.find(2), a.container @@ -483,7 +483,7 @@ class ProjectsControllerTest < Test::Unit::TestCase def test_project_menu assert_no_difference 'Redmine::MenuManager.items(:project_menu).size' do Redmine::MenuManager.map :project_menu do |menu| - menu.push :foo, { :controller => 'projects', :action => 'show' }, :cation => 'Foo' + menu.push :foo, { :controller => 'projects', :action => 'show' }, :caption => 'Foo' menu.push :bar, { :controller => 'projects', :action => 'show' }, :before => :activity menu.push :hello, { :controller => 'projects', :action => 'show' }, :caption => Proc.new {|p| p.name.upcase }, :after => :bar end |