Sha256: 3257e49e442b5840696ea8f9096b934da8488f8264e44300f026b0b3789db0e3
Contents?: true
Size: 542 Bytes
Versions: 11
Compression:
Stored size: 542 Bytes
Contents
require 'test_helper' class Kaui::UuidHelperTest < ActionView::TestCase #include Kaui::UuidHelper test 'can truncate' do assert_equal '04bdf7b6-...-ab062d33c425', truncate_uuid('04bdf7b6-a95d-4a08-9990-ab062d33c425') end test 'can create a popover' do object_id = SecureRandom.uuid expected_markup = %{<span id="#{object_id}-popover" class="object-id-popover" data-id="#{object_id}" data-placement="right">#{truncate_uuid(object_id)}</span} assert_dom_equal expected_markup, object_id_popover(object_id) end end
Version data entries
11 entries across 11 versions & 1 rubygems