From 9f60aa0d57f15d153c13d7980096a1d2a4e421a3 Mon Sep 17 00:00:00 2001 From: Sean Miller Date: Fri, 5 Jun 2015 12:48:50 -0400 Subject: [PATCH] Failing spec for html formatter scenario-level comment --- spec/cucumber/formatter/html_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/cucumber/formatter/html_spec.rb b/spec/cucumber/formatter/html_spec.rb index 6ba29758d6..12e7ec47fa 100644 --- a/spec/cucumber/formatter/html_spec.rb +++ b/spec/cucumber/formatter/html_spec.rb @@ -90,6 +90,17 @@ module Formatter it { expect(@doc).to have_css_node('.feature .comment', /Healthy/) } end + describe "with a comment at scenario level" do + define_feature <<-FEATURE + Feature: Foo + # Healthy Scenario + Scenario: + Given passing + FEATURE + + it { expect(@doc).to have_css_node('.scenario .comment', /Healthy Scenario/) } + end + describe "with a tag" do define_feature <<-FEATURE @foo