class TestPageGet
Public Instance Methods
test_all()
click to toggle source
# File vendor/qwik/lib/qwik/page-get.rb, line 150 def test_all pages = @site.get_pages page = pages.create_new # test_get ok_eq('', page.get) ok_eq('', page.load) # test_mtime assert_instance_of(Time, page.mtime) # test_size is 0, page.size page.store('t') is 1, page.size end
test_destructive()
click to toggle source
# File vendor/qwik/lib/qwik/page-get.rb, line 167 def test_destructive pages = @site.get_pages page = pages.create('1') page.store('t') str = page.get ok_eq('t', str) str.sub!(/t/, 's') # Destructive method. ok_eq('s', str) ok_eq('t', page.get) end
test_get_body_tree_superpre_sharp()
click to toggle source
# File vendor/qwik/lib/qwik/page-generate.rb, line 74 def test_get_body_tree_superpre_sharp page = @site.create_new page.store "{{{\n#t\n}}}\n" expected = [[:pre, "#t\n"]] actual = page.get_body_tree ok_eq expected, actual end