Sha256: d55a98d39997c88f46f0a0defd437eefce2b2c13bbe8327493f724c3b21976e5
Contents?: true
Size: 889 Bytes
Versions: 48
Compression:
Stored size: 889 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class GlyphTest < ActionView::TestCase include UiBibz::Helpers::Ui::CoreHelper test 'create glyph with a name' do actual = ui_glyph('add') expected = '<i class="glyph fas fa-add"></i>' assert_equal expected, actual end test 'create glyph with hash' do actual = ui_glyph({ name: 'add', size: 3, type: 'li' }) expected = '<i class="glyph fas fa-add fa-3x fa-li"></i>' assert_equal expected, actual end test 'create glyph with name and hash' do actual = ui_glyph('add', { size: 3, type: 'li' }) expected = '<i class="glyph fas fa-add fa-3x fa-li"></i>' assert_equal expected, actual end test 'create glyph with label' do actual = ui_glyph('add', { label: 'Example' }) expected = '<i class="glyph fas fa-add"></i> Example' assert_equal expected, actual end end
Version data entries
48 entries across 48 versions & 1 rubygems