lib/lopata/step.rb in lopata-0.1.24 vs lib/lopata/step.rb in lopata-0.1.25
- old
+ new
@@ -86,14 +86,10 @@
def let_methods
@let_methods ||= {}
end
- def let_bang_methods
- @let_bang_methods ||= {}
- end
-
private
# Group step's block is a block in context of builder, not scenario. So hide the @block to not be used in scenario.
def initialized!
builder = Lopata::ScenarioBuilder.new(title)
@@ -224,19 +220,14 @@
%i{ setup action }.include?(method_name)
end
# Step metadata is a combination of metadata given for step and all contexts (groups) the step included
def metadata
- (groups + [step]).compact.inject({}) { |merged, part| merged.merge(part.metadata) }
+ (groups + [step]).compact.inject({}) { |merged, part| merged.merge(part.metadata || {}) }
end
# Step methods is a combination of let_methods for all contexts (group) the step included
def let_methods
- (groups).compact.inject({}) { |merged, part| merged.merge(part.let_methods) }
- end
-
- # Step bang methods is a combination of let_bang_methods for all contexts (group) the step included
- def let_bang_methods
- (groups).compact.inject({}) { |merged, part| merged.merge(part.let_bang_methods) }
+ (groups).compact.inject({}) { |merged, part| merged.merge(part.let_methods || {}) }
end
end
end