Sha256: 4bb9ea201bf34c0c801c3d2103512f7cb47e05fb46e46a3ada91fa0522b5711d

Contents?: true

Size: 745 Bytes

Versions: 37

Compression:

Stored size: 745 Bytes

Contents

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

37 entries across 37 versions & 1 rubygems

Version Path
ui_bibz-2.4.0 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.15 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.14 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.13 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.12 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.11 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.10 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.9 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.8 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.7 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.6 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.5 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.4 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.3 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.2 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.1 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.3.0 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.2.2 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.2.1 test/ui/core/forms/numbers/formula_field_test.rb
ui_bibz-2.2.0 test/ui/core/forms/numbers/formula_field_test.rb