Commit b44e11b0 by Gabriel Falcao

fixing a failing test introduced by feature tags

parent bbaadafd
...@@ -1106,7 +1106,6 @@ class Feature(object): ...@@ -1106,7 +1106,6 @@ class Feature(object):
def _check_scenario_syntax(self, lines, filename): def _check_scenario_syntax(self, lines, filename):
empty_scenario = ('%s:' % (self.language.first_of_scenario)).lower() empty_scenario = ('%s:' % (self.language.first_of_scenario)).lower()
for line in lines: for line in lines:
if line.lower() == empty_scenario: if line.lower() == empty_scenario:
raise LettuceSyntaxError( raise LettuceSyntaxError(
......
...@@ -411,7 +411,7 @@ Feature: Movie rental without MMF ...@@ -411,7 +411,7 @@ Feature: Movie rental without MMF
Then there are 10 more left Then there are 10 more left
""" """
FEATURE18 = """ FEATURE20 = """
Feature: My scenarios have no name Feature: My scenarios have no name
Scenario: Scenario:
Given this scenario raises a syntax error Given this scenario raises a syntax error
...@@ -787,7 +787,7 @@ def test_background_parsing_without_mmf(): ...@@ -787,7 +787,7 @@ def test_background_parsing_without_mmf():
def test_syntax_error_for_scenarios_with_no_name(): def test_syntax_error_for_scenarios_with_no_name():
("Trying to parse features with unnamed " ("Trying to parse features with unnamed "
"scenarios will cause a syntax error") "scenarios will cause a syntax error")
expect(Feature.from_string).when.called_with(FEATURE18).to.throw( expect(Feature.from_string).when.called_with(FEATURE20).to.throw(
LettuceSyntaxError, LettuceSyntaxError,
('In the feature "My scenarios have no name", ' ('In the feature "My scenarios have no name", '
'scenarios must have a name, make sure to declare ' 'scenarios must have a name, make sure to declare '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment