Sha256: a446c07f7e63d7b9484383f7e443f7f60dd1d21e0cbf07da22933e3cba126f57

Contents?: true

Size: 601 Bytes

Versions: 3

Compression:

Stored size: 601 Bytes

Contents

require 'test_helper'
class BadgeTest < ActionView::TestCase
  include UiBibz::Helpers::Ui::CoreHelper

  test 'badge' do
    actual   = ui_badge 'state', status: :success, glyph: 'pencil'
    expected = "<span class=\"badge-success badge\"><i class=\"glyph fas fa-pencil\"></i>  state</span>"

    assert_equal expected, actual
  end

  test 'badge pill' do
    actual   = ui_badge 'state', status: :success, type: :pill, glyph: 'pencil'
    expected = "<span class=\"badge-success badge badge-pill\"><i class=\"glyph fas fa-pencil\"></i>  state</span>"

    assert_equal expected, actual
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ui_bibz-2.0.2 test/ui/core/notifications/badge_test.rb
ui_bibz-2.0.1 test/ui/core/notifications/badge_test.rb
ui_bibz-2.0.0 test/ui/core/notifications/badge_test.rb