Sha256: 853a5ba808bd908ef645d21c4c993f75c1aabad20ef4deea2bfae0623893f2bb

Contents?: true

Size: 498 Bytes

Versions: 20

Compression:

Stored size: 498 Bytes

Contents

require 'test_helper'

class RadioFieldTest < ActionView::TestCase

    test 'radio_field' do
      actual = UiBibz::Ui::Core::Forms::Choices::RadioField.new('John', { value: 1, status: :primary, type: :square }).render
      expected = "<div class=\"custom-control custom-radio\"><input type=\"radio\" name=\"John\" id=\"John_1\" value=\"1\" class=\"custom-control-input\" /><label class=\"custom-control-label\" for=\"John_1\">John</label></div>"

      assert_equal expected, actual
    end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ui_bibz-2.4.0 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.15 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.14 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.13 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.12 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.11 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.10 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.9 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.8 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.7 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.6 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.5 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.4 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.3 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.2 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.1 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.3.0 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.2.2 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.2.1 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.2.0 test/ui/core/forms/choices/radio_field_test.rb