Sha256: cb89eadd49cef3fdef122882f7afec9079ddc3afefc65df27313de86c3c3b1fb

Contents?: true

Size: 502 Bytes

Versions: 6

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

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

6 entries across 6 versions & 1 rubygems

Version Path
ui_bibz-2.5.6 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.5.5 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.5.3 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.5.2 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.5.1 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.5.0 test/ui/core/forms/choices/radio_field_test.rb