Sha256: 7429ad7502ccbdcea74fdf3bbce6f0530cd10d6d88d98f491ace4de09ee526dc
Contents?: true
Size: 877 Bytes
Versions: 17
Compression:
Stored size: 877 Bytes
Contents
require 'test_helper' class ToastTest < ActionView::TestCase include UiBibz::Helpers::Ui::CoreHelper test 'toast' do actual = ui_toast(auto_hide: true, class: 'my-toast') do |t| t.header 'My header toast', glyph: 'eye', time: 'Now', class: 'my-header-toast' t.body 'My body toast', class: 'my-body-toast' end expected = "<div data-autohide=\"true\" class=\"my-toast toast\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\"><div class=\"my-header-toast toast-header\"><i class=\"mr-2 glyph fas fa-eye\"></i><strong class=\"mr-auto\">My header toast</strong><small class=\"text-muted\">Now</small><button class=\"ml-2 mb-1 close\" data-dismiss=\"toast\" aria-label=\"Close\"><span aria-hidden=\"true\">×</span></button></div><div class=\"my-body-toast toast-body\">My body toast</div></div>" assert_equal expected, actual end end
Version data entries
17 entries across 17 versions & 1 rubygems