Sha256: f15db1fd74a3529f8cb246916adff5fb9377d2ea60ff37776c7c2f5b7df6d247
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 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=\"form-check\"><input type=\"radio\" name=\"John\" id=\"John_1\" value=\"1\" class=\"form-check-input\" /><label class=\"form-check-label\" for=\"John_1\">John</label></div>" assert_equal expected, actual end end
Version data entries
3 entries across 3 versions & 1 rubygems