spec/cucumber/parser/feature_parser_spec.rb in cucumber-0.3.101 vs spec/cucumber/parser/feature_parser_spec.rb in cucumber-0.3.102
- old
+ new
@@ -66,20 +66,20 @@
describe "Tags" do
it "should parse a file with tags on a feature" do
parse("# My comment\n@hello @world Feature: hi\n").to_sexp.should ==
[:feature, nil, "Feature: hi",
[:comment, "# My comment\n"],
- [:tag, "hello"],
- [:tag, "world"]]
+ [:tag, "@hello"],
+ [:tag, "@world"]]
end
it "should not take the tags as part of a multiline name feature element" do
parse("Feature: hi\n Scenario: test\n\n@hello Scenario: another").to_sexp.should ==
[:feature, nil, "Feature: hi",
[:scenario, 2, "Scenario:", "test"],
[:scenario, 4, "Scenario:", "another",
- [:tag, "hello"]]]
+ [:tag, "@hello"]]]
end
it "should parse a file with tags on a scenario" do
parse(%{# FC
@ft
@@ -92,16 +92,16 @@
@st3
@st4 @ST5 @#^%&ST6**!
Scenario: Second}).to_sexp.should ==
[:feature, nil, "Feature: hi",
[:comment, "# FC\n "],
- [:tag, "ft"],
+ [:tag, "@ft"],
[:scenario, 6, 'Scenario:', 'First',
- [:tag, "st1"], [:tag, "st2"],
+ [:tag, "@st1"], [:tag, "@st2"],
[:step_invocation, 7, "Given", "Pepper"]
],
[:scenario, 11, 'Scenario:', 'Second',
- [:tag, "st3"], [:tag, "st4"], [:tag, "ST5"], [:tag, "#^%&ST6**!"]]]
+ [:tag, "@st3"], [:tag, "@st4"], [:tag, "@ST5"], [:tag, "@#^%&ST6**!"]]]
end
end
describe "Background" do
it "should have steps" do