Sha256: b6a82846531a892f07ac759ec39d71a591364290c017847b0cf1012ee5d6794c
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
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(:respond_to_helper?) do unit.respond_to?(: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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chanko-2.0.5 | spec/fixtures/units/example_unit/example_unit.rb |