Sha256: 67233aa777c362a45edcedd0052fc28c00c300a9f36d6737e0f0c6fa96bbf114

Contents?: true

Size: 984 Bytes

Versions: 3

Compression:

Stored size: 984 Bytes

Contents

#
# Testing Ruote (OpenWFEru)
#
# 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(pdef, 'a')
  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

3 entries across 3 versions & 1 rubygems

Version Path
ruote-2.1.3 test/functional/eft_1_echo.rb
ruote-2.1.2 test/functional/eft_1_echo.rb
ruote-2.1.1 test/functional/eft_1_echo.rb