Sha256: cd311b02a46075c04681d6e1c9b05a156dfdc2b9f20f917987d9c21ac6fccc37

Contents?: true

Size: 535 Bytes

Versions: 13

Compression:

Stored size: 535 Bytes

Contents

require 'test_helper'

class CheckboxFieldTest < ActionView::TestCase

    test 'checkbox_field' do
      actual = UiBibz::Ui::Core::Forms::Choices::CheckboxField.new('John', { value: 1, status: :primary, type: :circle }).render
      expected = "<div class=\"abc-checkbox-primary form-check abc-checkbox abc-checkbox-circle\"><input type=\"checkbox\" name=\"John\" id=\"John\" value=\"1\" class=\"form-check-input\" /><label class=\"form-check-label\" for=\"John\">John</label></div>"

      assert_equal expected, actual
    end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ui_bibz-2.1.5 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.1.4 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.1.3 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.1.2 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.1.1 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.0.10 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.0.9 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.1.0 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.0.8 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.0.7 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.0.5 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.0.4 test/ui/core/forms/choices/checkbox_field_test.rb
ui_bibz-2.0.3 test/ui/core/forms/choices/checkbox_field_test.rb