testing/cucumber/features/clauses/with_clause.feature in cql-1.4.0 vs testing/cucumber/features/clauses/with_clause.feature in cql-1.4.1

- old
+ new

@@ -1,16 +1,18 @@ # todo - Rewrite the scenarios such that they use their own test specific feature files instead of setting up a large suite in the background Feature: 'with' clause The *with* clause specifies filter conditions that will reduce the number of things targeted by the *from* clause. The *with* clause can take one or more blocks that will filter out any object for which the block does not evaluate to true (using 'without' instead of 'with' will have the opposite effect). Alternatively, mappings of specific *from* targets to their respective filtering blocks can be provided. The *with* clause can also take predefined filters (detailed below). - Sample usage: - cql_repo.query do - select name, tags, description_text - from features - with { |feature| feature.name =~ /foo/ } - with tc lt 3 - end + Sample usage: + ```` + cql_repo.query do + select name, tags, description_text + from features + with { |feature| feature.name =~ /foo/ } + with tc lt 3 + end + ```` This clause can be repeated multiple times. The arguments for successive clauses are simply added to the previous arguments. The following filters are supported for models that have tags: