diff --git a/spec/blueprint/html_spec.cr b/spec/blueprint/html_spec.cr index fdfaa82..3192402 100644 --- a/spec/blueprint/html_spec.cr +++ b/spec/blueprint/html_spec.cr @@ -127,5 +127,20 @@ describe Blueprint::HTML do html.should eq expected_html end + + it "yields self" do + actual_html = ArticleComponent.new("Hello").to_s do |article| + article.body { "Blueprint" } + end + + expected_html = normalize_html <<-HTML +