The syntax of assert_difference has changed

You pass it a string now, instead of an object and a method
This commit is contained in:
Eric Allen 2009-12-07 18:41:23 -05:00
parent c459461aa3
commit 0dfb1aafda
5 changed files with 23 additions and 23 deletions

View file

@ -50,7 +50,7 @@ class ProjectXmlApiTest < ActionController::IntegrationTest
end
def test_creates_new_project
assert_difference Project, :count do
assert_difference 'Project.count' do
authenticated_post_xml_to_project_create
assert_response :created
end
@ -68,4 +68,4 @@ class ProjectXmlApiTest < ActionController::IntegrationTest
assert_response_and_body 404, "Expected post format is valid xml like so: <request><project><name>project name</name></project></request>."
end
end
end