Sha256: 1216cd1673f0a421339ecdd3459bb175bb585122e3a6699dd1cf5fa6f014818c
Contents?: true
Size: 615 Bytes
Versions: 3
Compression:
Stored size: 615 Bytes
Contents
# encoding: utf-8 require 'minitest/unit' MiniTest::Unit.autorun $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'slim' class Env def id_helper "notice" end def hash {:a => 'The letter a', :b => 'The letter b'} end def show_first?(show = false) show end def hello_world(text = "Hello World from @env", opts = {}) text << opts.to_a * " " if opts.any? yield if block_given? text end def in_keyword "starts with keyword" end def evil_method "<script>do_something_evil();</script>" end def output_number 1337 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slim-0.6.1 | test/helper.rb |
slim-0.6.0 | test/helper.rb |
slim-0.6.0.beta.3 | test/helper.rb |