summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test/issues_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-04 15:16:50 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-04 15:16:50 +0000
commitdc50edae5e27fdfc72a7de4d9b7021d98d9621bc (patch)
treeda31e2c09e7beff18eeeec822811630018508d5b /test/integration/api_test/issues_test.rb
parent5803bf9fc4545610a7ee46ce7f6a6bf9b4f55a57 (diff)
downloadredmine-dc50edae5e27fdfc72a7de4d9b7021d98d9621bc.tar.gz
redmine-dc50edae5e27fdfc72a7de4d9b7021d98d9621bc.zip
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
Diffstat (limited to 'test/integration/api_test/issues_test.rb')
-rw-r--r--test/integration/api_test/issues_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index 4445a000d..a092190d6 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -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