class TestActSample

Public Instance Methods

test_act_hello() click to toggle source
# File vendor/qwik/lib/qwik/act-sample.rb, line 144
def test_act_hello
  t_add_user
  res = session('/test/.hello')
  ok_title 'hello, world!'
  ok_in(['hi, there.'], '//div[@class="section"]')
end
test_plg_hello() click to toggle source
# File vendor/qwik/lib/qwik/act-sample.rb, line 135
    def test_plg_hello
      ok_wi([:strong, 'hello, world!'], '{{hello}}')
      ok_wi([:strong, 'hello, qwik!'], '{{hello(qwik)}}')
      ok_wi [:pre, "hello, s!\nhello, t!\n"], '{{bhello
s
t
}}'
    end
test_plg_quote() click to toggle source
# File vendor/qwik/lib/qwik/act-sample.rb, line 155
def test_plg_quote
  ok_wi([:blockquote, [:p, {:style=>'font-size:smaller;'}]],
        '{{quote}}')
  ok_wi([:blockquote, [:p, {:style=>'font-size:smaller;'}]],
        "{{quote\n\n}}")
  ok_wi([:blockquote, [:p, {:style=>'font-size:smaller;'}, "t\n", [:br]]],
        "{{quote\nt\n}}")
  ok_wi([:blockquote, [:p, {:style=>'font-size:smaller;'}, "t\n", [:br]]],
        "{{quote\n\nt\n}}")
  ok_wi([:blockquote, [:p, {:style=>'font-size:smaller;'},
            "t1\n", [:br],
            "t2\n", [:br]]],
        "{{quote\nt1\nt2\n}}")
end
test_plg_tt() click to toggle source
# File vendor/qwik/lib/qwik/act-sample.rb, line 151
def test_plg_tt
  ok_wi([:tt, 't'], '{{tt(t)}}')
end