Sha256: 0ca80a3f690ab61bfda6968ba708d97d184d430363d4089b5b31b211cf337c06

Contents?: true

Size: 607 Bytes

Versions: 37

Compression:

Stored size: 607 Bytes

Contents

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-2.4.0 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.15 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.14 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.13 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.12 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.11 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.10 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.9 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.8 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.7 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.6 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.5 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.4 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.3 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.2 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.1 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.3.0 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.2.2 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.2.1 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.2.0 test/ui/core/forms/buttons/button_refresh_test.rb