Sha256: d564cf71c48c23359855adfac31a46de0cbceb2d05df26723572e80a9c59e275
Contents?: true
Size: 579 Bytes
Versions: 2
Compression:
Stored size: 579 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slim-0.6.0.beta.2 | test/helper.rb |
slim-0.6.0.beta.1 | test/helper.rb |