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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue