lopata 0.1.36 → 0.1.38
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 +4 -4
- data/lib/lopata/condition.rb +31 -1
- data/lib/lopata/role.rb +201 -109
- data/lib/lopata/scenario_builder.rb +525 -519
- data/lib/lopata/step.rb +10 -2
- data/lib/lopata/version.rb +1 -1
- metadata +3 -3
data/lib/lopata/step.rb
CHANGED
|
@@ -40,7 +40,10 @@ module Lopata
|
|
|
40
40
|
if step.is_a?(String)
|
|
41
41
|
Lopata::SharedStep.find(step).steps.each do |shared_step|
|
|
42
42
|
next if shared_step.condition && !shared_step.condition.match?(scenario)
|
|
43
|
-
|
|
43
|
+
shared_executions = shared_step.execution_steps(scenario, parent: parent)
|
|
44
|
+
# Static conditions are already applied on build-time, dynamic ones must be checked on runtime.
|
|
45
|
+
shared_executions.each { |e| e.add_condition(condition) } if condition&.dynamic?
|
|
46
|
+
steps += shared_executions
|
|
44
47
|
end
|
|
45
48
|
elsif step.is_a?(Proc)
|
|
46
49
|
steps << StepExecution.new(self, parent, condition: condition, &step)
|
|
@@ -173,7 +176,12 @@ module Lopata
|
|
|
173
176
|
end
|
|
174
177
|
|
|
175
178
|
def ignored!
|
|
176
|
-
status
|
|
179
|
+
@status = :ignored
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Add condition to be matched in addition to own step condition.
|
|
183
|
+
def add_condition(other)
|
|
184
|
+
@condition = Lopata::Condition.combine(other, @condition)
|
|
177
185
|
end
|
|
178
186
|
|
|
179
187
|
def skip!
|
data/lib/lopata/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lopata
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.38
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexey Volochnev
|
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
133
|
- !ruby/object:Gem::Version
|
|
134
134
|
version: '0'
|
|
135
135
|
requirements: []
|
|
136
|
-
rubygems_version:
|
|
136
|
+
rubygems_version: 4.0.20
|
|
137
137
|
specification_version: 4
|
|
138
|
-
summary: lopata-0.1.
|
|
138
|
+
summary: lopata-0.1.38
|
|
139
139
|
test_files: []
|