Adds a template for API error messages so that it does not depend on AR::Errors serialization.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9094 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -498,7 +498,7 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||
end
|
||||
|
||||
json = ActiveSupport::JSON.decode(response.body)
|
||||
assert json['errors'].include?(['subject', "can't be blank"])
|
||||
assert json['errors'].include?("Subject can't be blank")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -674,7 +674,7 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||
put '/issues/6.json', @parameters, credentials('jsmith')
|
||||
|
||||
json = ActiveSupport::JSON.decode(response.body)
|
||||
assert json['errors'].include?(['subject', "can't be blank"])
|
||||
assert json['errors'].include?("Subject can't be blank")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user