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:
lrbalt 2008-02-13 14:04:42 +00:00
parent 9973095133
commit 72accf038c

View file

@ -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)