class TestActResolve

Public Instance Methods

ok(e, w) click to toggle source
# File vendor/qwik/lib/qwik/common-resolve.rb, line 67
def ok(e, w)
  eq e, @action.resolve_plugin(w)
end
ok_all(e, w) click to toggle source
# File vendor/qwik/lib/qwik/common-resolve.rb, line 79
def ok_all(e, w)
  w.make_index
  eq e, @action.resolve_all_plugin(w)
end
test_resolve_all_plugin() click to toggle source
# File vendor/qwik/lib/qwik/common-resolve.rb, line 84
def test_resolve_all_plugin
  res = session
  ok_all [[:br]], [[:plugin, {:method=>'br', :param=>''}, '']]
  ok_all [[:span, {:class=>"plg_error"}, "nosuch plugin | ",
      [:strong, "nosuchplugin"]]],
         [[:plugin, {:method=>'nosuchplugin', :param=>''}, '']]
end
test_resolve_plugin() click to toggle source
# File vendor/qwik/lib/qwik/common-resolve.rb, line 71
def test_resolve_plugin
  res = session
  ok [], [:a]
  ok [], [[:plugin]]        # error
  ok [], [[:plugin, 't']]   # error
  ok [:br], [:plugin, {:method=>'br', :param=>''}, '']
end