Removed a duplicate definition of the same test case; added an assertion to All Pages test

This commit is contained in:
Alexey Verkhovsky 2005-05-28 23:43:28 +00:00
parent 895dd41263
commit 5ef861f779

View file

@ -155,16 +155,12 @@ class E2EInstikiTest < Test::Unit::TestCase
assert_equal expected_page_links, page_links[-4..-1]
# and before that, we have the tail of the main menu
assert_equal 'Export', page_links[-5]
# Test Edit Page link is repeated twice, because it is an orphan
assert_match Regexp.new('Test Edit Page.*Orphaned Pages.*Test Edit Page', Regexp::MULTILINE),
ie.text
end
def test_0070_all_pages
ie.link(:text, 'All Pages').click
page_links = ie.links.map { |l| l.text }
expected_page_links = ['Another Wiki Page', 'Home Page', 'Test Edit Page', 'Test Edit Page']
assert_equal expected_page_links, page_links[-4..-1]
assert_equal 'Export', page_links[-5]
end
private
def bp