mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
re-adding removed tests - all green
This commit is contained in:
parent
5f5a2045b5
commit
b27b817ec5
3 changed files with 32 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue