@@ -141,7 +141,7 class ApiTest::UsersTest < ActionController::IntegrationTest | |||||
141 |
|
141 | |||
142 | assert_response :unprocessable_entity |
|
142 | assert_response :unprocessable_entity | |
143 | assert_equal 'application/xml', @response.content_type |
|
143 | assert_equal 'application/xml', @response.content_type | |
144 | assert_tag 'errors', :child => {:tag => 'error', :content => "Firstname can't be blank"} |
|
144 | assert_tag 'errors', :child => {:tag => 'error', :content => "First name can't be blank"} | |
145 | end |
|
145 | end | |
146 | end |
|
146 | end | |
147 |
|
147 | |||
@@ -226,7 +226,7 class ApiTest::UsersTest < ActionController::IntegrationTest | |||||
226 |
|
226 | |||
227 | assert_response :unprocessable_entity |
|
227 | assert_response :unprocessable_entity | |
228 | assert_equal 'application/xml', @response.content_type |
|
228 | assert_equal 'application/xml', @response.content_type | |
229 | assert_tag 'errors', :child => {:tag => 'error', :content => "Firstname can't be blank"} |
|
229 | assert_tag 'errors', :child => {:tag => 'error', :content => "First name can't be blank"} | |
230 | end |
|
230 | end | |
231 | end |
|
231 | end | |
232 |
|
232 |
General Comments 0
You need to be logged in to leave comments.
Login now