# frozen_string_literal: true require_relative "../test_helper" module Parser class YieldTest < Minitest::Spec include SnapshotUtils test "yield" do assert_parsed_snapshot(<<~HTML) <%= yield %> HTML end test "yield with symbol" do assert_parsed_snapshot(<<~HTML) <%= yield :head %> HTML end test "yield inside if" do assert_parsed_snapshot(<<~HTML) <% if content_for?(:header) %>