Sha256: a7405e6c4c64223225d2121da474e838cdf46c4beb0500a48ca16e7d93f9016d

Contents?: true

Size: 409 Bytes

Versions: 6

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class TextFieldTest < ActionView::TestCase
  test 'file_field' do
    actual = UiBibz::Ui::Core::Forms::Files::FileField.new('test').render
    expected = '<div class="custom-file"><input type="file" name="test" id="test" class="custom-file-input" /><label class="custom-file-label" for="test"></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/files/text_field_test.rb
ui_bibz-2.5.5 test/ui/core/forms/files/text_field_test.rb
ui_bibz-2.5.3 test/ui/core/forms/files/text_field_test.rb
ui_bibz-2.5.2 test/ui/core/forms/files/text_field_test.rb
ui_bibz-2.5.1 test/ui/core/forms/files/text_field_test.rb
ui_bibz-2.5.0 test/ui/core/forms/files/text_field_test.rb