Fix the failing mobile test after the updates

The editing an action of the mobile page scenario failed because of the
changes to the layout made by Tim Madden.
This commit is contained in:
Matt Rogers 2012-01-13 21:26:22 -06:00
parent 99707d7a69
commit 27fb483485
2 changed files with 12 additions and 4 deletions

View file

@ -168,4 +168,12 @@ Then /^the tags of "([^"]*)" should be "([^"]*)"$/ do |todo_description, tag_lis
todo.should_not be_nil
todo.tag_list.should == tag_list
end
end
Then /^I should see "([^"]*)" in the completed section of the mobile site$/ do |desc|
todo = @current_user.todos.find_by_description(desc)
todo.should_not be_nil
xpath = "//div[@id='completed_container']//a[@href='/todos/#{todo.id}.m']"
response.should have_xpath xpath
end