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

@ -56,7 +56,7 @@ class ContextXmlApiTest < ActionController::IntegrationTest
end
def test_creates_new_context
assert_difference Context, :count do
assert_difference 'Context.count' do
authenticated_post_xml_to_context_create
assert_response 201
end
@ -74,4 +74,4 @@ class ContextXmlApiTest < ActionController::IntegrationTest
assert_response_and_body 400, "Expected post format is valid xml like so: <request><context><name>context name</name></context></request>."
end
end
end