Sha256: 7cc6b59408e842c21025da3f77aa6c76f6db9775b437b4b63daa89e41e731354
Contents?: true
Size: 558 Bytes
Versions: 3
Compression:
Stored size: 558 Bytes
Contents
# Test facets/buildingblock.rb 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-2.2.1 | test/unit/test_buildingblock.rb |
facets-2.1.3 | test/unit/test_buildingblock.rb |
facets-2.2.0 | test/unit/test_buildingblock.rb |