lib/lopata/step.rb in lopata-0.1.23 vs lib/lopata/step.rb in lopata-0.1.24
- old
+ new
@@ -37,12 +37,11 @@
return steps if condition && !condition.match?(scenario)
convert_args(scenario).each do |step|
if step.is_a?(String)
Lopata::SharedStep.find(step).steps.each do |shared_step|
next if shared_step.condition && !shared_step.condition.match?(scenario)
- shared_group = SharedGroupStep.new(:shared_step)
- steps += shared_step.execution_steps(scenario, groups: groups + [shared_group])
+ steps += shared_step.execution_steps(scenario, groups: groups)
end
elsif step.is_a?(Proc)
steps << StepExecution.new(self, groups, condition: condition, &step)
end
end
@@ -99,19 +98,9 @@
def initialized!
builder = Lopata::ScenarioBuilder.new(title)
builder.instance_exec(&@block)
@steps = builder.steps
@block = nil
- end
- end
-
- # @private
- # Fake group for shared step instance
- # Used to build group hierarhy including chared steps
- class SharedGroupStep < Step
- # stub title - should not be used in scenario/step name generation.
- def title
- ''
end
end
#@private
class StepExecution