# frozen_string_literal: true require 'test_helper' class ButtonLinkTest < ActionView::TestCase include UiBibz::Helpers::Ui::CoreHelper test 'button_link' do actual = ui_button_link('state') expected = 'state' assert_equal expected, actual end test 'button_link with url' do actual = ui_button_link('state', url: '#new_url') expected = 'state' assert_equal expected, actual end test 'button_link with status' do actual = ui_button_link('state', status: :success) expected = 'state' assert_equal expected, actual end test 'button_link outline' do actual = ui_button_link('state', status: :success, outline: true) expected = 'state' assert_equal expected, actual end test 'button_link disabled' do actual = ui_button_link('state', state: :disabled) expected = 'state' assert_equal expected, actual end test 'button_link active' do actual = ui_button_link('state', state: :active) expected = 'state' assert_equal expected, actual end test 'button_link badge' do actual = ui_button_link('state', badge: 2) expected = 'state2' assert_equal expected, actual end test 'button_link block' do actual = ui_button_link('state', type: :block) expected = 'state' assert_equal expected, actual end test 'button_link size' do actual = ui_button_link('state', size: :sm) expected = 'state' assert_equal expected, actual end test 'button_link toggle' do actual = ui_button_link('state', toggle: true) expected = 'state' assert_equal expected, actual end test 'button_link glyph' do actual = ui_button_link('state', glyph: 'diamond') expected = ' state' assert_equal expected, actual end end