Sha256: edfd9d466a959b1a2b6590fe7088d00a983233da28feb895383e7eb7af6df128

Contents?: true

Size: 738 Bytes

Versions: 33

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class FormulaFieldTest < ActionView::TestCase
  test 'formula_field' do
    actual = UiBibz::Ui::Core::Forms::Numbers::FormulaField.new('value').render
    expected = '<div class="formula_field input-group ui_surround_field"><input type="text" name="value_formula" id="value_formula" class="formula-field form-control" /><span class="formula-field-sign input-group-text">=</span><input type="text" name="value" id="value" class="formula-field-result form-control" readonly="readonly" /><span data-bs-toggle="tooltip" class="formula-field-alert input-group-text"><i class="glyph-danger glyph fas fa-exclamation-triangle"></i></span></div>'

    assert_equal expected, actual
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
ui_bibz-3.0.13 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.12 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.11 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.10 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.9 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.8 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.7 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.6 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.5 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.4 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.3 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.2 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.1 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.0 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.0.beta19 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.0.beta18 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.0.beta17 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.0.beta16 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.0.beta15 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-3.0.0.beta14 test/ui/core/forms/numbers/formula_field_test.rb