Sha256: 44eaaf3ee227211a372845cd9512eda5d8bb1d06dd39d0e78013821b3e821a2e

Contents?: true

Size: 637 Bytes

Versions: 37

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class ButtonRefreshTest < ActionView::TestCase
  test 'button' do
    actual   = UiBibz::Ui::Core::Forms::Buttons::ButtonRefresh.new('state', status: :success, connect: { target: { url: '/' } }).render
    expected = "<span data-connect=\"{&quot;events&quot;:&quot;click&quot;,&quot;mode&quot;:&quot;remote&quot;,&quot;target&quot;:{&quot;selector&quot;:&quot;&quot;,&quot;url&quot;:&quot;/&quot;,&quot;data&quot;:[]}}\" class=\"btn-success ui-bibz-connect btn input-refresh-button\"><i class=\"glyph fas fa-sync-alt\"></i> state</span>"

    assert_equal expected, actual
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
ui_bibz-3.0.13 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.12 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.11 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.10 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.9 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.8 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.7 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.6 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.5 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.4 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.3 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.2 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.1 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0.beta19 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0.beta18 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0.beta17 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0.beta16 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0.beta15 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0.beta14 test/ui/core/forms/buttons/button_refresh_test.rb