Sha256: 71a249c6562b7ff4743383f9ebc1220888bc669f1ebc9045b02c4ddd905c43cc
Contents?: true
Size: 1.61 KB
Versions: 1
Compression:
Stored size: 1.61 KB
Contents
require 'test/unit' require 'rubygems' require 'action_controller' require 'clear_helper' class TestClearHelper < Test::Unit::TestCase include ActionView::Helpers::TagHelper include ClearHelper::TagHelper def test_clear_helper assert_equal '<div style="clear: both; font-size: 0; height: 0; line-height: 0; max-height: 0"> </div>', clear assert_equal '<div style="clear: left; font-size: 0; height: 0; line-height: 0; max-height: 0"> </div>', clear(:left) assert_equal '<div style="clear: left; font-size: 0; height: 0; line-height: 0; max-height: 0"> </div>', clear('left') assert_equal '<div style="clear: right; font-size: 10px; height: 10px; line-height: 10px; max-height: 10px"> </div>', clear(:right, 10) assert_equal '<div style="clear: both; font-size: 2.5em; height: 2.5em; line-height: 2.5em; max-height: 2.5em"> </div>', clear('2.5em') assert_equal '<div style="clear: both; font-size: 5px; height: 5px; line-height: 5px; max-height: 5px"> </div>', clear(5) assert_equal '<div style="clear: both; font-size: 0; height: 0; line-height: 0; max-height: 0"> </div>', clear(:clear => :both) assert_equal '<div style="clear: both; font-size: 0; height: 0; line-height: 0; max-height: 0"> </div>', clear(:clear => :both) assert_equal '<div style="clear: both; font-size: 5px; height: 5px; line-height: 5px; max-height: 5px; width: 99%"> </div>', clear(:clear => :both, :height => 5, :width => '99%') assert_equal '<div style="clear: both; font-size: 0; height: 0; line-height: 0; max-height: 0; width: 99%"> </div>', clear(:width => '99%') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clear_helper-0.0.2 | test/test_clear_helper.rb |