Sha256: 872c9098361afca93d0777fad43d6ebec92663d2ba2495f3a7d7800a8935fabe

Contents?: true

Size: 632 Bytes

Versions: 11

Compression:

Stored size: 632 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

11 entries across 11 versions & 1 rubygems

Version Path
ui_bibz-3.0.0.alpha8 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0.alpha6 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0.alpha5 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0.alpha3 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-3.0.0.alpha2 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.5.6 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.5.5 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.5.3 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.5.2 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.5.1 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.5.0 test/ui/core/forms/buttons/button_refresh_test.rb