mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 12:28:48 +01:00
another assert_nil hack
This commit is contained in:
parent
04d5e764b2
commit
589ee75168
1 changed files with 5 additions and 1 deletions
|
|
@ -8,7 +8,11 @@ class ProjectFromTodoTest < ActiveSupport::TestCase
|
|||
todo = todos(:upgrade_rails)
|
||||
project = ProjectFromTodo.new(todo).create
|
||||
assert_equal project.name, todo.description
|
||||
assert_equal project.description, todo.notes
|
||||
if project.desription.nil?
|
||||
assert_nil todo.notes
|
||||
else
|
||||
assert_equal project.description, todo.notes
|
||||
end
|
||||
if project.default_context.nil?
|
||||
assert_nil todo.context
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue