mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
another set of dynamic finder migrations. All non-cucumber tests pass
This commit is contained in:
parent
64a198d45a
commit
ef91dd0c64
18 changed files with 66 additions and 66 deletions
|
|
@ -46,7 +46,7 @@ class ProjectXmlApiTest < ActionController::IntegrationTest
|
|||
def test_fails_with_comma_in_name
|
||||
authenticated_post_xml_to_project_create "<project><name>foo,bar</name></project>"
|
||||
assert_response :created
|
||||
project1 = Project.find_by_name("foo,bar")
|
||||
project1 = Project.where(:name => "foo,bar").first
|
||||
assert_not_nil project1, "expected project 'foo,bar' to be created"
|
||||
end
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ class ProjectXmlApiTest < ActionController::IntegrationTest
|
|||
authenticated_post_xml_to_project_create
|
||||
assert_response :created
|
||||
end
|
||||
project1 = Project.find_by_name(@@project_name)
|
||||
project1 = Project.where(:name => @@project_name).first
|
||||
assert_not_nil project1, "expected project '#{@@project_name}' to be created"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue