# frozen_string_literal: true

require "test_helper"

class Dummy::Molecule::Blog::Articles::Card::MediumCellTest < Cell::TestCase
  test "show" do
    article = create(:dummy_blog_article)

    atoms = Array.new(2) do
      create_atom(Dummy::Atom::Blog::Articles::Card::Large, article: article)
    end

    html = cell(atoms.first.class.molecule_cell_name, atoms).(:show)
    assert_equal 2, html.find_all(".d-ui-article-card").size
  end
end
