lopata 0.1.23 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9404c01f3020e012451ba5cd5c6d91fbec443df94fe961ad9159e296f5783775
4
- data.tar.gz: 16523f8e209f6864370912267f5e26955e1cc07708cfc7f31b2d4f324c0a2aec
3
+ metadata.gz: 52985977beeccefe3ae15ad9686dad98119c0f201007ce353d27e182bfb11eaa
4
+ data.tar.gz: 5c21409a5efb926421e8d829ab2051dad6f4a4e914ee2e9500c01c28e8b083c7
5
5
  SHA512:
6
- metadata.gz: 2c81b2e83e0df4838d7743dccdc6c79ef689ccb0d8a1caed6bf3ba3ecfd228041841b531881390a5efe369cc05d681feab919b0d0acebea8d48a065c36e0c6be
7
- data.tar.gz: 363b3ea67a91e50ead1d51eb23c50856e9a5a8f2a0f524f56fbabd9f72d3c1b5cb4b7254b9bcf6bcc4fbaef57024ffe6a207bb52d277f8eb96e1a3723d1346fc
6
+ metadata.gz: 34503bf27d89b6fca63f77fab8d0f4940f102c01de34058f73d2255258e06e1b5a26b989302b9d842502b8f79b236c80538729b15878655f35d87f0370836947
7
+ data.tar.gz: af7b41981f88d5c8fd03e3099d7ff7612a1d24642e7ca27f01bc914a309ed32847fcf4c1a4ae12dbfd42b167040e36c19f2a012f00295761eb4ce125fdebe565
data/lib/lopata/step.rb CHANGED
@@ -39,8 +39,7 @@ module Lopata
39
39
  if step.is_a?(String)
40
40
  Lopata::SharedStep.find(step).steps.each do |shared_step|
41
41
  next if shared_step.condition && !shared_step.condition.match?(scenario)
42
- shared_group = SharedGroupStep.new(:shared_step)
43
- steps += shared_step.execution_steps(scenario, groups: groups + [shared_group])
42
+ steps += shared_step.execution_steps(scenario, groups: groups)
44
43
  end
45
44
  elsif step.is_a?(Proc)
46
45
  steps << StepExecution.new(self, groups, condition: condition, &step)
@@ -89,10 +88,6 @@ module Lopata
89
88
  @let_methods ||= {}
90
89
  end
91
90
 
92
- def let_bang_methods
93
- @let_bang_methods ||= {}
94
- end
95
-
96
91
  private
97
92
 
98
93
  # Group step's block is a block in context of builder, not scenario. So hide the @block to not be used in scenario.
@@ -104,16 +99,6 @@ module Lopata
104
99
  end
105
100
  end
106
101
 
107
- # @private
108
- # Fake group for shared step instance
109
- # Used to build group hierarhy including chared steps
110
- class SharedGroupStep < Step
111
- # stub title - should not be used in scenario/step name generation.
112
- def title
113
- ''
114
- end
115
- end
116
-
117
102
  #@private
118
103
  class StepExecution
119
104
  attr_reader :step, :status, :exception, :block, :pending_message, :groups, :condition
@@ -237,17 +222,12 @@ module Lopata
237
222
 
238
223
  # Step metadata is a combination of metadata given for step and all contexts (groups) the step included
239
224
  def metadata
240
- (groups + [step]).compact.inject({}) { |merged, part| merged.merge(part.metadata) }
225
+ (groups + [step]).compact.inject({}) { |merged, part| merged.merge(part.metadata || {}) }
241
226
  end
242
227
 
243
228
  # Step methods is a combination of let_methods for all contexts (group) the step included
244
229
  def let_methods
245
- (groups).compact.inject({}) { |merged, part| merged.merge(part.let_methods) }
246
- end
247
-
248
- # Step bang methods is a combination of let_bang_methods for all contexts (group) the step included
249
- def let_bang_methods
250
- (groups).compact.inject({}) { |merged, part| merged.merge(part.let_bang_methods) }
230
+ (groups).compact.inject({}) { |merged, part| merged.merge(part.let_methods || {}) }
251
231
  end
252
232
  end
253
233
  end
@@ -1,6 +1,6 @@
1
1
  module Lopata
2
2
  # @private
3
3
  module Version
4
- STRING = '0.1.23'
4
+ STRING = '0.1.25'
5
5
  end
6
6
  end
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.23
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Volochnev
@@ -139,5 +139,5 @@ requirements: []
139
139
  rubygems_version: 3.2.15
140
140
  signing_key:
141
141
  specification_version: 4
142
- summary: lopata-0.1.23
142
+ summary: lopata-0.1.25
143
143
  test_files: []