Sha256: 3b3dd299bba8962da819f230ff7603e0bc468703ca51cb66621ee474c0a674bb
Contents?: true
Size: 819 Bytes
Versions: 9
Compression:
Stored size: 819 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/buildingblock.rb # # Extracted Mon Sep 03 16:23:07 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/buildingblock.rb' require 'test/unit' class TestBuildingBlock < Test::Unit::TestCase module M extend self def m(n,*m) ; "#{n}{#{m}}"; end def t(n) ; "#{n}"; end end def test_01 build = BuildingBlock.new(M, :m) build.html do head do title "Test" end body do i "Hello" build! :not t "Test" t "Hey" end end r = "html{head{title{Test}}body{i{Hello}not{}TestHey}}" assert_equal( r, build.to_s ) end end
Version data entries
9 entries across 9 versions & 1 rubygems