class TestSitePages

Public Instance Methods

test_all() click to toggle source
# File vendor/qwik/lib/qwik/site-pages.rb, line 48
def test_all
  # test_get_superpage
  eq nil, @site.get_superpage('t')          # Not found.
  page = @site.create '_t'
  eq '_t', @site.get_superpage('t').key     # There is a private page.
  page = @site.create 't'
  eq 't', @site.get_superpage('t').key      # There is a public page.

  # test_get_superpage_for_super_page
  eq '_SideMenu', @site.get_superpage('SideMenu').key
  page = @site.create 'SideMenu'
  eq 'SideMenu', @site.get_superpage('SideMenu').key
end