macros4cuke 0.2.14 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/lib/macros4cuke/constants.rb +1 -1
- data/spec/macros4cuke/macro-step-support_spec.rb +6 -0
- metadata +1 -1
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.
|
@@ -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
|