Sha256: b51da59d2b2c9e73e2a3312855181dd1ffcc5a2166eecfacfba57eacebc87827
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
# # testing ruote # # Sat Sep 20 23:40:10 JST 2008 # #class String # def empty? # puts '=' * 80 # puts caller.join("\n") # return (size == 0) # end #end #require 'perftools' #PerfTools::CpuProfiler.start("/tmp/out.profile") #def require (o) # p o # Kernel.require(o) #end #require 'profile' require File.expand_path('../base', __FILE__) class EftEchoTest < Test::Unit::TestCase include FunctionalBase def test_echo pdef = Ruote.process_definition :name => 'test' do echo 'a' end #noisy assert_trace('a', pdef) end def test_echo_text pdef = Ruote.define do echo :text => 'a' end assert_trace('a', pdef) end #def test_print_escape # pdef = OpenWFE.process_definition :name => 'test' do # sequence do # set :v => 'toto', :value => 'otot' # echo '${toto}', :escape => 'true' # echo '${toto}', :escape => true # echo :escape => true do # '${toto}' # end # end # end # assert_trace( # pdef, # ([ '${toto}' ] * 3).join("\n")) #end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruote-2.3.0.3 | test/functional/eft_1_echo.rb |
ruote-2.3.0.2 | test/functional/eft_1_echo.rb |
ruote-2.3.0.1 | test/functional/eft_1_echo.rb |
ruote-2.3.0 | test/functional/eft_1_echo.rb |