Sha256: 428069cb5d2966edd29dce49f36b5557e466fc669e01d7a310186313c5fc4542

Contents?: true

Size: 604 Bytes

Versions: 7

Compression:

Stored size: 604 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 fa fa-refresh\"></i> state</span>"

    assert_equal expected, actual
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ui_bibz-2.0.0.beta2.6 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.0.0.beta2.5 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.0.0.beta2.4 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.0.0.beta2.3 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.0.0.beta2.2 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.0.0.beta2.1 test/ui/core/forms/buttons/button_refresh_test.rb
ui_bibz-2.0.0.beta2 test/ui/core/forms/buttons/button_refresh_test.rb