Sha256: a103d2388c0ba0a04be68993213ea49d505eed63449255a942e912ad9ef4d0f0

Contents?: true

Size: 642 Bytes

Versions: 13

Compression:

Stored size: 642 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 fa-solid fa-sync-alt\"></i> state</span>"

    assert_equal expected, actual
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ui_bibz-4.0.0.beta18 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta17 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta16 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta15 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta14 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta13 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta10 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta9 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta8 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta7 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta6 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta4 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-4.0.0.beta3 test/ui/core/forms/buttons/button_refresh_test.rb