Mercurial > hg > soundsoftware-site
comparison test/integration/api_test/.svn/text-base/users_test.rb.svn-base @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:24:13 +0100 |
parents | 07fa8a8b56a8 |
children |
comparison
equal
deleted
inserted
replaced
245:051f544170fe | 441:cbce1fd3b1b7 |
---|---|
139 post '/users.xml', @parameters, :authorization => credentials('admin') | 139 post '/users.xml', @parameters, :authorization => credentials('admin') |
140 end | 140 end |
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 |
148 context ".json" do | 148 context ".json" do |
149 should "return errors" do | 149 should "return errors" do |
224 put '/users/2.xml', @parameters, :authorization => credentials('admin') | 224 put '/users/2.xml', @parameters, :authorization => credentials('admin') |
225 end | 225 end |
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 |
233 context ".json" do | 233 context ".json" do |
234 should "return errors" do | 234 should "return errors" do |