fixes selenium test for mobile new action which incorrectly tried to set a due date in the past.

Also add a test for tags with dots related to [734] and #655

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@739 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-03-14 15:24:27 +00:00
parent 130f06f642
commit 6d8d066b3e
2 changed files with 5 additions and 5 deletions

View file

@ -157,15 +157,15 @@ class TodosControllerTest < Test::Rails::TestCase
assert_equal true, t.tag_list.empty?
end
def test_update_todo_tags_with_whitespace
def test_update_todo_tags_with_whitespace_and_dots
t = Todo.find(1)
login_as(:admin_user)
taglist = " one , two,three ,four"
taglist = " one , two,three ,four, 8.1.2, version1.5"
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
assert_equal "one, two, three, four, 8.1.2, version1.5", t.tag_list
end
def test_find_tagged_with
login_as(:admin_user)
@user = User.find(@request.session['user_id'])

View file

@ -12,7 +12,7 @@ select "todo_context_id", "label=call"
select "todo_project_id", "label=Make more money than Billy Gates"
select "todo_due_3i", "label=1"
select "todo_due_2i", "label=January"
select "todo_due_1i", "label=2007"
select "todo_due_1i", "label=2009"
click_and_wait "//input[@value='Create']"
wait_for_text 'css=h1 span.count', '11'