Cache clearing in Revision did not include wiki_reference_cache, which caused new pages to be created as orphans

This commit is contained in:
Alexey Verkhovsky 2005-04-03 05:15:56 +00:00
parent c0605f0b78
commit b1e92e3719
3 changed files with 24 additions and 10 deletions

View file

@ -126,6 +126,19 @@ class WebTest < Test::Unit::TestCase
}
end
def test_new_page_linked_from_mother_page
# this was a bug in revision 204
home = Page.new(@web, 'HomePage', 'This page refers to AnotherPage',
Time.local(2004, 4, 4, 16, 50), 'Alexey Verkhovsky')
another_page = Page.new(@web, 'AnotherPage', 'This is \AnotherPage',
Time.local(2004, 4, 4, 16, 51), 'Alexey Verkhovsky')
@web.add_page(home)
@web.add_page(another_page)
assert_equal [home], @web.select.pages_that_link_to('AnotherPage')
end
private
def add_sample_pages