You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stack_component_test.rb
    path of file: ./repos/polaris_view_components/test/components/polaris
    
    the code of the file until where you have to start completion: require "test_helper"

class StackComponentTest < Minitest::Test
  include Polaris::ComponentTestHelpers

  def test_default_stack
    render_inline(Polaris::StackComponent.new) do |stack|
      stack.with_it
    
  def test_default_stack
    render_inline(Polaris::StackComponent.new) do |stack|
      stack.with_item { "Item 1" }
      stack.with_item { "Item 2" }
    end

    assert_selector ".Polaris-LegacyStack" do
      assert_selector ".Polaris-LegacyStack__Item", count: 2
      assert_selector ".Polaris-LegacyStack__Item:nth-child(1)", text: "Item 1"
      assert_selector ".Polaris-LegacyStack__Item:nth-child(2)", text: "Item 2"
    end
  end