class TestActDay

Public Instance Methods

test_all() click to toggle source
# File vendor/qwik/lib/qwik/act-day.rb, line 72
    def test_all
      t_add_user

      page = @site.create_new
      page.put_with_time('* t1', 0)     # Store this page first.
      page.put_with_time('* t2', 1)     # Store this page second.
      #p @site.to_a

      # test_act_day
      res = session '/test/.day'
     #ok_in ['max'], '//title'

=begin
      # test_ext_day
      # There is a page in 1970-01-01.
      res = session '/test/19700101.day'
      ok_in ["One day | 19700101"], '//title'
=end

      # There is no page in 1970-01-02.
      res = session '/test/19700102.day'
      ok_in ['no contents'], '//title'
    end