mab-0.0.3/ 0000755 0000041 0000041 00000000000 12154154304 012300 5 ustar www-data www-data mab-0.0.3/test/ 0000755 0000041 0000041 00000000000 12154154304 013257 5 ustar www-data www-data mab-0.0.3/test/test_mab_builder.rb 0000644 0000041 0000041 00000001707 12154154304 017115 0 ustar www-data www-data require 'helper'
class TestMabBuilder < MiniTest::Unit::TestCase
def test_assigns
b = Mab::Builder.new(:title => 'Mab') do
title @title
end
assert_equal '
Mab', b.to_s
end
def test_capture
b = Mab::Builder.new do
%w[name address].map do |key|
mab do
p key
end
end.join('
')
end
assert_equal "name
address
", b.to_s
end
def test_helper
obj = Class.new {
def initialize
@a = 1
@b = 2
end
def c; @a + @b end
}.new
b = Mab::Builder.new({}, obj) do
p @a
p @b
p c
end
assert_equal '1
2
3
', b.to_s
end
def test_pretty
b = Mab::PrettyBuilder.new do
doctype!
html do
body do
h1 "Nice"
end
end
end
assert_equal "\n\n \n Nice
\n \n", b.to_s
end
end
mab-0.0.3/test/rails/ 0000755 0000041 0000041 00000000000 12154154304 014371 5 ustar www-data www-data mab-0.0.3/test/rails/app/ 0000755 0000041 0000041 00000000000 12154154304 015151 5 ustar www-data www-data mab-0.0.3/test/rails/app/assets/ 0000755 0000041 0000041 00000000000 12154154304 016453 5 ustar www-data www-data mab-0.0.3/test/rails/app/assets/stylesheets/ 0000755 0000041 0000041 00000000000 12154154304 021027 5 ustar www-data www-data mab-0.0.3/test/rails/app/assets/stylesheets/application.css 0000644 0000041 0000041 00000001042 12154154304 024041 0 ustar www-data www-data /*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require_tree .
*/
mab-0.0.3/test/rails/app/assets/javascripts/ 0000755 0000041 0000041 00000000000 12154154304 021004 5 ustar www-data www-data mab-0.0.3/test/rails/app/assets/javascripts/application.js 0000644 0000041 0000041 00000001201 12154154304 023637 0 ustar www-data www-data // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require jquery_ujs
//= require_tree .
mab-0.0.3/test/rails/app/assets/images/ 0000755 0000041 0000041 00000000000 12154154304 017720 5 ustar www-data www-data mab-0.0.3/test/rails/app/assets/images/rails.png 0000644 0000041 0000041 00000014766 12154154304 021556 0 ustar www-data www-data PNG
IHDR 2 @ X${ tEXtSoftware Adobe ImageReadyqe<