macros4cuke 0.4.05 → 0.4.06
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.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/features/support/env.rb +3 -3
- data/lib/macros4cuke/constants.rb +1 -1
- data/lib/macros4cuke/templating/section.rb +1 -1
- data/spec/macros4cuke/coll-walker-factory_spec.rb +1 -1
- data/spec/macros4cuke/macro-step_spec.rb +1 -1
- data/spec/macros4cuke/templating/engine_spec.rb +2 -2
- data/spec/macros4cuke/templating/section_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODgyOWE2YmMzMzg4Mzg1OGI2OWJlNzFjZDAxOWZhZWQwYzJjY2EyYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDI4MTNlYmVmMzIyMTE1YjcwZDEyYTk3NzFhMTY5OWMwMDgxYWZkZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWJkOGExZjdjYmNmOWU1Mjg4ZmFmZjM5MTNlZGI1OWM2MGZhZjEwODlkZmI4
|
10
|
+
NjQzOWY5MWFkMmM3YzdkZjM5ZTI1ZGU4MGRkNDI2MzBlYzcxNjc5N2EwMDRm
|
11
|
+
ZTA4MWY0YjRiMTY5YzJmNGJlYWFkODNkYjg3OTViN2ZhNzE0NzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTQ1ZWVhYjAyYzA0Mjc3ODdhZmE5MzcyYzA5ZjVkODNhM2M1OGFlODJkM2I5
|
14
|
+
MWY4YjlkNjUzZDlhMWRiNmFjMTlmNGVjYTY0ZmI4NzBkMzJhNjJjYzE4NGU4
|
15
|
+
ZGQyN2FiM2JmZjRmNDg0MTQxZTljY2IyZGFlMzNmMmViODdlNzE=
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### 0.4.06 / 2014-01-27
|
2
|
+
* [FIX] Addressed Rubocop 0.17 complains about bad indentation in some spec files.
|
3
|
+
|
4
|
+
|
1
5
|
### 0.4.05 / 2014-01-14
|
2
6
|
* [CHANGE] File `.travis.yml`: Added Ruby MRI 2.1.0 to Travis CI
|
3
7
|
* [CHANGE] File `README.md`: Added sentence explaining where list of macro. defs is placed.
|
data/features/support/env.rb
CHANGED
@@ -67,7 +67,7 @@ end # class
|
|
67
67
|
class ConditionalSection < Section
|
68
68
|
# A boolean that indicates whether the rendition condition is
|
69
69
|
# the existence of a value for the variable (true)
|
70
|
-
# or its
|
70
|
+
# or its non-existence (false).
|
71
71
|
attr_reader(:existence)
|
72
72
|
|
73
73
|
# @param aVarName [String] The name of the placeholder from a template.
|
@@ -55,7 +55,7 @@ describe CollWalkerFactory do
|
|
55
55
|
end
|
56
56
|
|
57
57
|
it 'should notify the visit of a first macro step' do
|
58
|
-
|
58
|
+
1.times { subject.next }
|
59
59
|
first_step = subject.next
|
60
60
|
step1 = macro_coll.macro_steps.values[0]
|
61
61
|
expect(first_step).to eq([:on_step, 1, step1])
|
@@ -129,7 +129,7 @@ SNIPPET
|
|
129
129
|
phrase = %Q|enter my credentials as "nobody"|
|
130
130
|
msg = "The macro argument 'userid' has value 'nobody' and 'someone'."
|
131
131
|
args = [ %w(userid someone), %w(password no-secret) ]
|
132
|
-
|
132
|
+
expect { subject.expand(phrase, args) }.to raise_error(
|
133
133
|
AmbiguousArgumentValue, msg)
|
134
134
|
end
|
135
135
|
|
@@ -14,7 +14,7 @@ module Templating # Open this namespace to get rid of module qualifier prefixes
|
|
14
14
|
describe Engine do
|
15
15
|
# Sample template (consisting of a sequence of steps)
|
16
16
|
let(:sample_template) do
|
17
|
-
|
17
|
+
source = <<-SNIPPET
|
18
18
|
Given I landed in the homepage
|
19
19
|
And I fill in "Username" with "<userid>"
|
20
20
|
And I fill in "Password" with "<password>"
|
@@ -26,7 +26,7 @@ SNIPPET
|
|
26
26
|
|
27
27
|
# Template containing two conditional sections
|
28
28
|
let(:sophisticated_template) do
|
29
|
-
|
29
|
+
source = <<-SNIPPET
|
30
30
|
When I fill in "firstname" with "<firstname>"
|
31
31
|
And I fill in "lastname" with "<lastname>"
|
32
32
|
# Next line defines a comment
|
@@ -72,7 +72,7 @@ describe Section do
|
|
72
72
|
|
73
73
|
it 'should expect that its subclasses render the children' do
|
74
74
|
error_message = 'Method Section.render must be implemented in subclass.'
|
75
|
-
|
75
|
+
expect { subject.send(:render, Object.new, {}) }.to raise_error(
|
76
76
|
NotImplementedError, error_message)
|
77
77
|
end
|
78
78
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: macros4cuke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.06
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitri Geshef
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|