diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-02 19:59:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-02 19:59:52 +0000 |
commit | 131f258f5fba320a779bdd69e3681beab07fb8e3 (patch) | |
tree | 70f0804372dbab34476c5acb2c30c87fee61560e /test/integration/api_test/versions_test.rb | |
parent | 395fe0d777f2f41c1594ae95f1199ae8de25c184 (diff) | |
download | redmine-131f258f5fba320a779bdd69e3681beab07fb8e3.tar.gz redmine-131f258f5fba320a779bdd69e3681beab07fb8e3.zip |
Test cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8477 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/versions_test.rb')
-rw-r--r-- | test/integration/api_test/versions_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/api_test/versions_test.rb b/test/integration/api_test/versions_test.rb index 34416b68c..e250dcd50 100644 --- a/test/integration/api_test/versions_test.rb +++ b/test/integration/api_test/versions_test.rb @@ -58,7 +58,7 @@ class ApiTest::VersionsTest < ActionController::IntegrationTest context "POST" do should "create the version" do assert_difference 'Version.count' do - post '/projects/1/versions.xml', {:version => {:name => 'API test'}}, :authorization => credentials('jsmith') + post '/projects/1/versions.xml', {:version => {:name => 'API test'}}, credentials('jsmith') end version = Version.first(:order => 'id DESC') @@ -72,7 +72,7 @@ class ApiTest::VersionsTest < ActionController::IntegrationTest context "with failure" do should "return the errors" do assert_no_difference('Version.count') do - post '/projects/1/versions.xml', {:version => {:name => ''}}, :authorization => credentials('jsmith') + post '/projects/1/versions.xml', {:version => {:name => ''}}, credentials('jsmith') end assert_response :unprocessable_entity @@ -103,7 +103,7 @@ class ApiTest::VersionsTest < ActionController::IntegrationTest context "PUT" do should "update the version" do - put '/versions/2.xml', {:version => {:name => 'API update'}}, :authorization => credentials('jsmith') + put '/versions/2.xml', {:version => {:name => 'API update'}}, credentials('jsmith') assert_response :ok assert_equal 'API update', Version.find(2).name @@ -113,7 +113,7 @@ class ApiTest::VersionsTest < ActionController::IntegrationTest context "DELETE" do should "destroy the version" do assert_difference 'Version.count', -1 do - delete '/versions/3.xml', {}, :authorization => credentials('jsmith') + delete '/versions/3.xml', {}, credentials('jsmith') end assert_response :ok |