mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
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:
parent
c459461aa3
commit
0dfb1aafda
5 changed files with 23 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue