mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-22 16:56:10 +01:00
fix all tests
This commit is contained in:
parent
f0ec5647d4
commit
632c0e7255
6 changed files with 11 additions and 9 deletions
|
|
@ -195,12 +195,12 @@ class TodoTest < ActiveSupport::TestCase
|
|||
def test_todo_specification_handles_null_project
|
||||
# @not_completed1 has a project
|
||||
todo_desc = @not_completed1.description
|
||||
assert_equal "\"#{todo_desc}\" <\"agenda\"; \"Make more money than Billy Gates\">", @not_completed1.specification
|
||||
assert_equal "'#{todo_desc}' <'agenda'; 'Make more money than Billy Gates'>", @not_completed1.specification
|
||||
|
||||
# now check on null
|
||||
@not_completed1.project = nil
|
||||
@not_completed1.save
|
||||
assert_equal "\"#{todo_desc}\" <\"agenda\"; \"(none)\">", @not_completed1.specification
|
||||
assert_equal "'#{todo_desc}' <'agenda'; '(none)'>", @not_completed1.specification
|
||||
end
|
||||
|
||||
def test_todo_from_specification_should_return_todo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue