Sha256: 537e7728617d055cf1f5815a6b130dd588ec7903d50d9b96f4a12304b976ec02
Contents?: true
Size: 726 Bytes
Versions: 40
Compression:
Stored size: 726 Bytes
Contents
require 'test_helper' include UiBibz::Helpers class GlyphTest < ActionView::TestCase test 'create glyph with a name' do actual = UiBibz::Ui::Core::Glyph.new('add').render expected = '<i class="glyph fa fa-add"></i>' assert_equal expected, actual end test 'create glyph with hash' do actual = UiBibz::Ui::Core::Glyph.new({ name: 'add', size: 3, type: 'li'}).render expected = '<i class="glyph fa fa-add fa-3x fa-li"></i>' assert_equal expected, actual end test 'create glyph with name and hash' do actual = UiBibz::Ui::Core::Glyph.new('add', { size: 3, type: 'li' }).render expected = '<i class="glyph fa fa-add fa-3x fa-li"></i>' assert_equal expected, actual end end
Version data entries
40 entries across 40 versions & 1 rubygems