Sha256: b2c70fc80b39f118b55e36239d43ad0faef8468af98458b4e6a5fdf61c2deaef

Contents?: true

Size: 451 Bytes

Versions: 24

Compression:

Stored size: 451 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=\"abc-checkbox-primary checkbox abc-checkbox\"><input type=\"radio\" name=\"John\" id=\"John_1\" value=\"1\" /><label for=\"John_1\">John</label></div>"

      assert_equal expected, actual
    end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ui_bibz-2.1.6 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.1.5 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.1.4 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.1.3 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.1.2 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.1.1 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.10 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.9 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.1.0 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.8 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.7 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.5 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.4 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.3 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.2 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.1 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.0 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.0.beta2.6 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.0.beta2.5 test/ui/core/forms/choices/radio_field_test.rb
ui_bibz-2.0.0.beta2.4 test/ui/core/forms/choices/radio_field_test.rb