macros4cuke 0.2.14 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.2.15 / 2013-05-03
2
+ * [CHANGE] File `macro-step-support_spec.rb`: Added one RSpec example.
3
+ * [FIX] Updated gemspec.
4
+
5
+
1
6
  ## 0.2.14 / 2013-05-03
2
7
  * [CHANGE] Code comments reformatted to YARD. The command line `yard stats`display a 100% documented score!
3
8
  * [CHANGE] Moved all classes related to the template engine to the new module Templating.
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Macros4Cuke # Module used as a namespace
5
5
  # The version number of the gem.
6
- Version = '0.2.14'
6
+ Version = '0.2.15'
7
7
 
8
8
  # Brief description of the gem.
9
9
  Description = "Macros for Cucumber"
@@ -40,6 +40,12 @@ SNIPPET
40
40
  error_message = "A macro-step with phrase 'enter the credentials' already exist."
41
41
  lambda { world.add_macro(m1_phrase, m1_substeps, true) }.should raise_error(Macros4Cuke::DuplicateMacroError, error_message)
42
42
  end
43
+
44
+ it "should complain macro uses no table and phrase is parameterless" do
45
+ # Error case: substeps have arguments, but the macro has no mechanism to pass the needed data.
46
+ error_message = "The sub-step argument 'userid' does not appear in the phrase."
47
+ lambda { world.add_macro("fill in the credentials", m1_substeps, false) }.should raise_error(Macros4Cuke::UnreachableSubstepArgument, error_message)
48
+ end
43
49
  end # context
44
50
 
45
51
  end # describe
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macros4cuke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: