re-adding removed tests - all green

This commit is contained in:
Stefan Richter 2011-10-06 21:13:31 +02:00
parent 5f5a2045b5
commit b27b817ec5
3 changed files with 32 additions and 1 deletions

View file

@ -49,6 +49,11 @@ class ContextXmlApiTest < ActionController::IntegrationTest
assert_select 'error', 1, 'Name cannot contain the comma (\',\') character'
end
end
def test_fails_with_401_if_not_authorized_user
authenticated_post_xml_to_context_create @@valid_postdata, 'nobody', 'nohow'
assert_response 401
end
def test_creates_new_context
assert_difference 'Context.count' do