Sha256: e1fc9095135f1f49eaab8126a5eeb3fab534bdec14520fa564d60313d47b7ead
Contents?: true
Size: 990 Bytes
Versions: 5
Compression:
Stored size: 990 Bytes
Contents
require 'test_helper' class BootstrapBaseHelperTest < ActionView::TestCase test 'list' do list_text = list do |li| li << link_to('test', '#') li << 'test-text' end assert_not_nil list_text assert_match /<a href="#">test<\/a>/i, list_text assert_match /<li>test-text<\/li>/i, list_text end test 'r_image_tag' do text = r_image_tag('no') assert_not_nil text assert_match /<img/i, text assert_match /class="img-rounded/i, text end test 'c_image_tag' do text = c_image_tag('no') assert_not_nil text assert_match /<img/i, text assert_match /class="img-circle/i, text end test 'p_image_tag' do text = p_image_tag('no') assert_not_nil text assert_match /<img/i, text assert_match /class="img-polaroid/i, text end test 'glyph_icon' do text = glyph_icon(:plus, :white) assert_not_nil text assert_match /<i/i, text assert_match /class="icon-plus icon-white/i, text end end
Version data entries
5 entries across 5 versions & 1 rubygems