Removed a few assertions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6296 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f89483a206
commit
8769eb53bc
|
@ -108,8 +108,6 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||||
end
|
end
|
||||||
|
|
||||||
context "/index.xml with filter" do
|
context "/index.xml with filter" do
|
||||||
should_allow_api_authentication(:get, "/projects/private-child/issues.xml?status_id=5")
|
|
||||||
|
|
||||||
should "show only issues with the status_id" do
|
should "show only issues with the status_id" do
|
||||||
get '/issues.xml?status_id=5'
|
get '/issues.xml?status_id=5'
|
||||||
assert_tag :tag => 'issues',
|
assert_tag :tag => 'issues',
|
||||||
|
@ -119,8 +117,6 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||||
end
|
end
|
||||||
|
|
||||||
context "/index.json with filter" do
|
context "/index.json with filter" do
|
||||||
should_allow_api_authentication(:get, "/projects/private-child/issues.json?status_id=5")
|
|
||||||
|
|
||||||
should "show only issues with the status_id" do
|
should "show only issues with the status_id" do
|
||||||
get '/issues.json?status_id=5'
|
get '/issues.json?status_id=5'
|
||||||
|
|
||||||
|
@ -304,11 +300,6 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||||
end
|
end
|
||||||
|
|
||||||
context "POST /issues.xml with failure" do
|
context "POST /issues.xml with failure" do
|
||||||
should_allow_api_authentication(:post,
|
|
||||||
'/issues.xml',
|
|
||||||
{:issue => {:project_id => 1}},
|
|
||||||
{:success_code => :unprocessable_entity})
|
|
||||||
|
|
||||||
should "have an errors tag" do
|
should "have an errors tag" do
|
||||||
assert_no_difference('Issue.count') do
|
assert_no_difference('Issue.count') do
|
||||||
post '/issues.xml', {:issue => {:project_id => 1}}, :authorization => credentials('jsmith')
|
post '/issues.xml', {:issue => {:project_id => 1}}, :authorization => credentials('jsmith')
|
||||||
|
@ -339,11 +330,6 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||||
end
|
end
|
||||||
|
|
||||||
context "POST /issues.json with failure" do
|
context "POST /issues.json with failure" do
|
||||||
should_allow_api_authentication(:post,
|
|
||||||
'/issues.json',
|
|
||||||
{:issue => {:project_id => 1}},
|
|
||||||
{:success_code => :unprocessable_entity})
|
|
||||||
|
|
||||||
should "have an errors element" do
|
should "have an errors element" do
|
||||||
assert_no_difference('Issue.count') do
|
assert_no_difference('Issue.count') do
|
||||||
post '/issues.json', {:issue => {:project_id => 1}}, :authorization => credentials('jsmith')
|
post '/issues.json', {:issue => {:project_id => 1}}, :authorization => credentials('jsmith')
|
||||||
|
@ -417,11 +403,6 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||||
@headers = { :authorization => credentials('jsmith') }
|
@headers = { :authorization => credentials('jsmith') }
|
||||||
end
|
end
|
||||||
|
|
||||||
should_allow_api_authentication(:put,
|
|
||||||
'/issues/6.xml',
|
|
||||||
{:issue => {:subject => ''}}, # Missing subject should fail
|
|
||||||
{:success_code => :unprocessable_entity})
|
|
||||||
|
|
||||||
should "not create a new issue" do
|
should "not create a new issue" do
|
||||||
assert_no_difference('Issue.count') do
|
assert_no_difference('Issue.count') do
|
||||||
put '/issues/6.xml', @parameters, @headers
|
put '/issues/6.xml', @parameters, @headers
|
||||||
|
@ -486,11 +467,6 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||||
@headers = { :authorization => credentials('jsmith') }
|
@headers = { :authorization => credentials('jsmith') }
|
||||||
end
|
end
|
||||||
|
|
||||||
should_allow_api_authentication(:put,
|
|
||||||
'/issues/6.json',
|
|
||||||
{:issue => {:subject => ''}}, # Missing subject should fail
|
|
||||||
{:success_code => :unprocessable_entity})
|
|
||||||
|
|
||||||
should "not create a new issue" do
|
should "not create a new issue" do
|
||||||
assert_no_difference('Issue.count') do
|
assert_no_difference('Issue.count') do
|
||||||
put '/issues/6.json', @parameters, @headers
|
put '/issues/6.json', @parameters, @headers
|
||||||
|
|
Loading…
Reference in New Issue