Sha256: 506df5979ad7ad3097195bb4dc68f39fb12f485be32b9174a07543d77a6f988d

Contents?: true

Size: 737 Bytes

Versions: 6

Compression:

Stored size: 737 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-addon">=</span><input type="text" name="value" id="value" class="formula-field-result form-control" readonly="readonly" /><span data-toggle="tooltip" class="formula-field-alert input-group-addon"><i class="glyph-danger glyph fas fa-exclamation-triangle"></i></span></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/numbers/formula_field_test.rb
ui_bibz-2.5.5 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.5.3 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.5.2 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.5.1 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.5.0 test/ui/core/forms/numbers/formula_field_test.rb