adapts issue api_test error expectations to changed error format

pull/1186/head
Jens Ulferts 12 years ago
parent 9b599b63fa
commit 2eac7ffb6b
  1. 4
      test/integration/api_test/issues_test.rb

@ -320,7 +320,7 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
end
json = ActiveSupport::JSON.decode(response.body)
assert json['errors'].include?(['subject', "can't be blank"])
assert_equal json['errors'], { "subject" => ["can't be blank"] }
end
end
@ -477,7 +477,7 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
put '/issues/6.json', @parameters, @headers
json = ActiveSupport::JSON.decode(response.body)
assert json['errors'].include?(['subject', "can't be blank"])
assert_equal json['errors'], { "subject" => ["can't be blank"] }
end
end

Loading…
Cancel
Save