Sha256: 9f5ca6d87040e8e6333b2c44bce7c043a6cf867efc31efbc9bb547978f6313b0
Contents?: true
Size: 1019 Bytes
Versions: 5
Compression:
Stored size: 1019 Bytes
Contents
module ExampleUnit include Chanko::Unit shared(:shared) do |args| "shared #{args}" end scope(:controller) do function(:test) do "test" end function(:foo) do "foo" end function(:bar) do "bar" end function(:alias) do "alias" end function(:default) do run_default end function(:render) do render_to_string :partial => "/test", :locals => { :local => "test" } end end scope(:view) do function(:test) do "test" end function(:self) do self end function(:locals) do key end function(:falsy) do key.nil? end function(:shared) do shared("args") end function(:error) do raise_no_method_error end function(:helper) do unit.helper end function(:render) do render "/test", :local => "test" end function(:blank) do " " end end helpers do def helper "helper" end end end
Version data entries
5 entries across 5 versions & 1 rubygems