1
Description: Currently FC010 isn't working, ignore the test failures
2
Chef no longer bundles a lucene treetop spec.
3
Author: Stefano Rivera <stefanor@debian.org>
4
Bug-Upstream: https://github.com/acrmp/foodcritic/issues/199
5
Last-Updated: 2014-01-10
7
--- a/features/010_check_search_syntax.feature
8
+++ b/features/010_check_search_syntax.feature
11
I want to verify that search expressions use valid Lucene syntax
13
- Scenario: Invalid search syntax
14
- Given a cookbook recipe that attempts to perform a search with invalid syntax
15
- When I check the cookbook
16
- Then the invalid search syntax warning 010 should be displayed
18
Scenario: Valid search syntax
19
Given a cookbook recipe that attempts to perform a search with valid syntax
20
When I check the cookbook
21
--- a/features/specify_search_grammar.feature
22
+++ b/features/specify_search_grammar.feature
25
I want to be able to specify the grammar to use as a command line option
27
- Scenario: No grammar passed
28
- Given a cookbook recipe that attempts to perform a search with invalid syntax
29
- When I check the cookbook
30
- Then the invalid search syntax warning 010 should be displayed
32
Scenario: Missing grammar passed
33
Given a cookbook recipe that attempts to perform a search with invalid syntax
34
When I check the cookbook specifying a search grammar that does not exist
36
Given a cookbook recipe that attempts to perform a search with invalid syntax
37
When I check the cookbook specifying a search grammar that is not in treetop format
38
Then the check should abort with an error
40
- Scenario: Valid grammar passed
41
- Given a cookbook recipe that attempts to perform a search with invalid syntax
42
- When I check the cookbook specifying a search grammar that is a valid treetop grammar
43
- Then the invalid search syntax warning 010 should be displayed