Sha256: 61ef59725c69cb865870e2acd60e57adf3a626b3fb528b5c0305ebd2e3bb9fa9

Contents?: true

Size: 525 Bytes

Versions: 53

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class CardGridTest < ActionView::TestCase
  include UiBibz::Helpers::Ui::CoreHelper

  test 'create card' do
    actual = ui_card_grid do |cg|
      cg.card "card 1"
      cg.card "card 2"
    end
    expected = "<div class=\"row card-grid\"><div class=\"col\"><div class=\"card\"><div class=\"card-body\">card 1</div></div></div><div class=\"col\"><div class=\"card\"><div class=\"card-body\">card 2</div></div></div></div>"

    assert_equal expected, actual
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
ui_bibz-4.0.0.beta16 test/ui/core/boxes/card_grid_test.rb
ui_bibz-4.0.0.beta15 test/ui/core/boxes/card_grid_test.rb
ui_bibz-4.0.0.beta14 test/ui/core/boxes/card_grid_test.rb
ui_bibz-4.0.0.beta13 test/ui/core/boxes/card_grid_test.rb
ui_bibz-4.0.0.beta10 test/ui/core/boxes/card_grid_test.rb
ui_bibz-4.0.0.beta9 test/ui/core/boxes/card_grid_test.rb
ui_bibz-4.0.0.beta8 test/ui/core/boxes/card_grid_test.rb
ui_bibz-4.0.0.beta7 test/ui/core/boxes/card_grid_test.rb
ui_bibz-4.0.0.beta6 test/ui/core/boxes/card_grid_test.rb
ui_bibz-4.0.0.beta4 test/ui/core/boxes/card_grid_test.rb
ui_bibz-4.0.0.beta3 test/ui/core/boxes/card_grid_test.rb
ui_bibz-3.0.13 test/ui/core/boxes/card_grid_test.rb
ui_bibz-3.0.12 test/ui/core/boxes/card_grid_test.rb
ui_bibz-3.0.11 test/ui/core/boxes/card_grid_test.rb
ui_bibz-3.0.10 test/ui/core/boxes/card_grid_test.rb
ui_bibz-3.0.9 test/ui/core/boxes/card_grid_test.rb
ui_bibz-3.0.8 test/ui/core/boxes/card_grid_test.rb
ui_bibz-3.0.7 test/ui/core/boxes/card_grid_test.rb
ui_bibz-3.0.6 test/ui/core/boxes/card_grid_test.rb
ui_bibz-3.0.5 test/ui/core/boxes/card_grid_test.rb