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
|
|
@ -59,7 +59,7 @@ class TodoXmlApiTest < ActionController::IntegrationTest
|
|||
</todo>"
|
||||
|
||||
assert_response :success
|
||||
todo = @user.todos.find_by_description("this will succeed 2.0")
|
||||
todo = @user.todos.where(:description => "this will succeed 2.0").first
|
||||
assert_not_nil todo
|
||||
assert !todo.uncompleted_predecessors.empty?
|
||||
end
|
||||
|
|
@ -76,7 +76,7 @@ class TodoXmlApiTest < ActionController::IntegrationTest
|
|||
</todo>"
|
||||
|
||||
assert_response :success
|
||||
todo = @user.todos.find_by_description("this will succeed 2.1")
|
||||
todo = @user.todos.where(:description => "this will succeed 2.1").first
|
||||
assert_not_nil todo
|
||||
assert !todo.uncompleted_predecessors.empty?
|
||||
end
|
||||
|
|
@ -95,7 +95,7 @@ class TodoXmlApiTest < ActionController::IntegrationTest
|
|||
</todo>"
|
||||
|
||||
assert_response :success
|
||||
todo = @user.todos.find_by_description("this will succeed 3")
|
||||
todo = @user.todos.where(:description => "this will succeed 3").first
|
||||
assert_not_nil todo
|
||||
assert_equal "starred, starred1, starred2", todo.tag_list
|
||||
assert todo.starred?
|
||||
|
|
@ -113,7 +113,7 @@ class TodoXmlApiTest < ActionController::IntegrationTest
|
|||
</todo>"
|
||||
|
||||
assert_response :success
|
||||
todo = @user.todos.find_by_description("this will succeed 3.1")
|
||||
todo = @user.todos.where(:description => "this will succeed 3.1").first
|
||||
assert_not_nil todo
|
||||
assert_equal "tracks", todo.tag_list
|
||||
end
|
||||
|
|
@ -133,7 +133,7 @@ class TodoXmlApiTest < ActionController::IntegrationTest
|
|||
</todo>"
|
||||
|
||||
assert_response :success
|
||||
todo = @user.todos.find_by_description("this will succeed 3")
|
||||
todo = @user.todos.where(:description => "this will succeed 3").first
|
||||
assert_not_nil todo
|
||||
assert_equal "bar, bingo, foo", todo.tag_list
|
||||
authenticated_post_xml_to_todo_create "
|
||||
|
|
@ -149,7 +149,7 @@ class TodoXmlApiTest < ActionController::IntegrationTest
|
|||
</todo>"
|
||||
|
||||
assert_response :success
|
||||
todo = @user.todos.find_by_description("this will succeed 4")
|
||||
todo = @user.todos.where(:description => "this will succeed 4").first
|
||||
assert_not_nil todo
|
||||
assert_equal "bar, bingo, foo", todo.tag_list
|
||||
end
|
||||
|
|
@ -165,7 +165,7 @@ class TodoXmlApiTest < ActionController::IntegrationTest
|
|||
</todo>"
|
||||
|
||||
assert_response :success
|
||||
todo = @user.todos.find_by_description("this will succeed 4")
|
||||
todo = @user.todos.where(:description => "this will succeed 4").first
|
||||
assert_not_nil todo
|
||||
assert_not_nil todo.context
|
||||
assert_equal todo.context.name, "@SomeNewContext"
|
||||
|
|
@ -182,7 +182,7 @@ class TodoXmlApiTest < ActionController::IntegrationTest
|
|||
</todo>"
|
||||
|
||||
assert_response :success
|
||||
todo = @user.todos.find_by_description("this will succeed 4")
|
||||
todo = @user.todos.where(:description => "this will succeed 4").first
|
||||
assert_not_nil todo
|
||||
assert_not_nil todo.context
|
||||
assert_equal contexts(:office).name, todo.context.name
|
||||
|
|
@ -200,7 +200,7 @@ class TodoXmlApiTest < ActionController::IntegrationTest
|
|||
</todo>"
|
||||
|
||||
assert_response :success
|
||||
todo = @user.todos.find_by_description("this will succeed 5")
|
||||
todo = @user.todos.where(:description => "this will succeed 5").first
|
||||
assert_not_nil todo
|
||||
assert_not_nil todo.project
|
||||
assert_equal todo.project.name, "Make even more money"
|
||||
|
|
@ -217,7 +217,7 @@ class TodoXmlApiTest < ActionController::IntegrationTest
|
|||
</todo>"
|
||||
|
||||
assert_response :success
|
||||
todo = @user.todos.find_by_description("this will succeed 5")
|
||||
todo = @user.todos.where(:description => "this will succeed 5").first
|
||||
assert_not_nil todo
|
||||
assert_not_nil todo.project
|
||||
assert_equal projects(:timemachine).name, todo.project.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue