Sha256: 5bcea1079ba5aa249e9721a2cd0f3af9d1f52eda22962613c677d31db0a386e7
Contents?: true
Size: 842 Bytes
Versions: 6
Compression:
Stored size: 842 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class ColTest < ActionView::TestCase include UiBibz::Helpers::Ui::CoreHelper test 'col with options' do actual = ui_col('test', { num: 1, push: 2, offset: 3, pull: 4 }, { class: 'test' }) expected = '<div class="test col-md-1 col-md-push-2 offset-md-3 col-md-pull-4">test</div>' assert_equal expected, actual end test 'col with several cols' do actual = ui_col(md: { num: 1, push: 2, pull: 4 }, xl: { num: 6, offset: 5 }, class: 'test') do 'test' end expected = '<div class="test col-md-1 col-md-push-2 col-md-pull-4 col-xl-6 offset-xl-5">test</div>' assert_equal expected, actual end test 'col' do actual = ui_col do 'test' end expected = '<div class="col">test</div>' assert_equal expected, actual end end
Version data entries
6 entries across 6 versions & 1 rubygems