macros4cuke 0.4.09 → 0.5.03
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +2 -2
- data/CHANGELOG.md +17 -0
- data/README.md +41 -22
- data/bin/macros4cuke +15 -0
- data/examples/demo/features/support/use_macros4cuke.rb +12 -0
- data/examples/i18n/fr/features/demo01-fr.feature +13 -0
- data/examples/i18n/fr/features/step_definitions/demo_steps.rb +5 -0
- data/examples/i18n/fr/features/step_definitions/{use_macro_steps.rb → macro_steps_fr.rb} +3 -2
- data/examples/i18n/fr/features/support/use_macros4cuke.rb +12 -0
- data/examples/i18n/nl/cucumber.yml +6 -0
- data/examples/i18n/nl/features/demo01-nl.feature +40 -0
- data/examples/i18n/nl/features/step_definitions/demo_steps.rb +21 -0
- data/examples/i18n/nl/features/step_definitions/macro_steps_nl.rb +31 -0
- data/examples/i18n/nl/features/support/use_macros4cuke.rb +12 -0
- data/features/support/use_macros4cuke.rb +11 -0
- data/lib/macros4cuke.rb +1 -0
- data/lib/macros4cuke/application.rb +75 -0
- data/lib/macros4cuke/cli/cmd-line.rb +142 -0
- data/lib/macros4cuke/constants.rb +2 -2
- data/lib/macros4cuke/cucumber.rb +16 -0
- data/lib/macros4cuke/exceptions.rb +25 -1
- data/lib/macros4cuke/templating/comment.rb +43 -0
- data/lib/macros4cuke/templating/eo-line.rb +30 -0
- data/lib/macros4cuke/templating/static-text.rb +40 -0
- data/lib/macros4cuke/templating/template-element.rb +7 -88
- data/spec/macros4cuke/application_spec.rb +117 -0
- data/spec/macros4cuke/cli/cmd-line_spec.rb +223 -0
- data/spec/macros4cuke/macro-collection_spec.rb +1 -1
- data/spec/macros4cuke/macro-step-support_spec.rb +1 -1
- data/spec/macros4cuke/templating/comment_spec.rb +1 -1
- data/spec/macros4cuke/templating/eo-line_spec.rb +2 -2
- data/spec/macros4cuke/templating/static_text_spec.rb +1 -1
- data/templates/use_macros4cuke.erb +12 -0
- metadata +35 -19
- data/examples/demo/features/step_definitions/use_macro_steps.rb +0 -10
- data/examples/demo/features/support/macro_support.rb +0 -16
- data/examples/i18n/fr/features/support/macro_support.rb +0 -17
- data/features/step_definitions/use_macro_steps.rb +0 -10
- data/features/support/macro_support.rb +0 -16
@@ -1,10 +0,0 @@
|
|
1
|
-
# File: use_macro_steps.rb
|
2
|
-
# Place a copy of this file in the feature/step_definitions folder
|
3
|
-
# of your own Cucumber-based project.
|
4
|
-
|
5
|
-
# The following require will load the step definitions from Macros4Cuke.
|
6
|
-
# This allows feature file authors to use macro steps
|
7
|
-
# in their Cucumber scenarios.
|
8
|
-
require 'macros4cuke/../macro_steps'
|
9
|
-
|
10
|
-
# End of file
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# File: macro_support.rb
|
2
|
-
# Purpose: Add the support for macros in a Cucumber project.
|
3
|
-
# This file is meant to be put next to the 'env.rb' file
|
4
|
-
# of your Cucumber project.
|
5
|
-
|
6
|
-
|
7
|
-
# Macros4Cuke step one: Load modules and classes from the gem.
|
8
|
-
require 'macros4cuke'
|
9
|
-
|
10
|
-
|
11
|
-
# Macros4Cuke step two: extend the world object with the mix-in module
|
12
|
-
# that adds the support for macros in Cucumber.
|
13
|
-
World(Macros4Cuke::MacroStepSupport)
|
14
|
-
|
15
|
-
|
16
|
-
# End of file
|