Sha256: 9bd776f5c70ac6c8ee8f13171023012a51e27828688cb92b539be5d652a1df18

Contents?: true

Size: 1.06 KB

Versions: 2

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.join(File.dirname(__FILE__), 'base')


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

2 entries across 2 versions & 2 rubygems

Version Path
ruote-maestrodev-2.2.1 test/functional/eft_1_echo.rb
ruote-2.2.0 test/functional/eft_1_echo.rb