mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 11:10:12 +01:00
add test to check on correct parsing of multiple tags. Related to previous commit
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@709 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
9973095133
commit
72accf038c
1 changed files with 9 additions and 0 deletions
|
|
@ -156,6 +156,15 @@ class TodosControllerTest < Test::Rails::TestCase
|
|||
t = Todo.find(1)
|
||||
assert_equal true, t.tag_list.empty?
|
||||
end
|
||||
|
||||
def test_update_todo_tags_with_whitespace
|
||||
t = Todo.find(1)
|
||||
login_as(:admin_user)
|
||||
taglist = " one , two,three ,four"
|
||||
xhr :post, :update, :id => 1, :_source_view => 'todo', "todo"=>{"context_id"=>"1", "project_id"=>"2", "id"=>"1", "notes"=>"", "description"=>"Call Warren Buffet to find out how much he makes per day", "due"=>"30/11/2006"}, "tag_list"=>taglist
|
||||
t = Todo.find(1)
|
||||
assert_equal "one, two, three, four", t.tag_list
|
||||
end
|
||||
|
||||
def test_find_tagged_with
|
||||
login_as(:admin_user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue