diff options
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/admin_test.rb | 4 | ||||
-rw-r--r-- | test/integration/projects_test.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb index 570cbe6fc..ab86505c5 100644 --- a/test/integration/admin_test.rb +++ b/test/integration/admin_test.rb @@ -32,7 +32,7 @@ class AdminTest < ActionController::IntegrationTest get "/users/new" assert_response :success assert_template "users/new" - post "/users/create", + post "/users", :user => { :login => "psmith", :firstname => "Paul", :lastname => "Smith", :mail => "psmith@somenet.foo", :language => "en", :password => "psmith09", @@ -53,7 +53,7 @@ class AdminTest < ActionController::IntegrationTest end test "Add a user as an anonymous user should fail" do - post '/users/create', + post '/users', :user => { :login => 'psmith', :firstname => 'Paul'}, :password => "psmith09", :password_confirmation => "psmith09" assert_response :redirect diff --git a/test/integration/projects_test.rb b/test/integration/projects_test.rb index d5127fd5a..890250c8a 100644 --- a/test/integration/projects_test.rb +++ b/test/integration/projects_test.rb @@ -26,7 +26,7 @@ class ProjectsTest < ActionController::IntegrationTest get "admin/projects" assert_response :success assert_template "admin/projects" - post "projects/archive", :id => 1 + post "projects/1/archive" assert_redirected_to "/admin/projects" assert !Project.find(1).active? @@ -35,7 +35,7 @@ class ProjectsTest < ActionController::IntegrationTest get "projects/#{subproject.id}" assert_response 403 - post "projects/unarchive", :id => 1 + post "projects/1/unarchive" assert_redirected_to "/admin/projects" assert Project.find(1).active? get "projects/1" |