mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-20 16:06:10 +01:00
retain tags from action when transforming into project
This commit is contained in:
parent
db62ebd074
commit
229c515e71
2 changed files with 8 additions and 0 deletions
|
|
@ -12,6 +12,13 @@ class ProjectFromTodoTest < ActiveSupport::TestCase
|
|||
assert_equal project.default_context, todo.context
|
||||
end
|
||||
|
||||
def test_retain_tags_from_todo
|
||||
todo = todos(:upgrade_rails)
|
||||
todo.tag_with "a, b"
|
||||
project = ProjectFromTodo.new(todo).create
|
||||
assert_equal "a, b", project.default_tags
|
||||
end
|
||||
|
||||
def test_invalid_project_from_invalid_todo
|
||||
todo = todos(:upgrade_rails)
|
||||
todo.description = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue