Sha256: 99c5657bb18b5657d9135b12647a903679e623de74db21623350804ee8f78296
Contents?: true
Size: 518 Bytes
Versions: 17
Compression:
Stored size: 518 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 form-check-input-primary\" /><label class=\"form-check-label\" for=\"John_1\">John</label></div>" assert_equal expected, actual end end
Version data entries
17 entries across 17 versions & 1 rubygems