chartspec 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 8f443152f4af9b7d51d90acb33d2b68ba4492dd5
4
- data.tar.gz: 82a31469817588baca2d38f2e14f1e292dfd2e0e
3
+ metadata.gz: dfff92c7d2ad18db04d89b49e5245d3fb09412b6
4
+ data.tar.gz: 37ae98e4409eefb080bf0abd42d7fba35627adfb
5
5
  SHA512:
6
- metadata.gz: 243c877c4be49d7098cf0e20c3778aab349369fcf44df40581342630c44ca423345d80d5eba6f7f7b374c586a7db2583d714ba69a8b7d690d0acfc8d00a2583e
7
- data.tar.gz: effddac83c3393a5a2605a5d1f4b16f6c63f72ccad02c10e4bf5a9c79e4ee968c1c67bc9608a95e627a7b1bb20546ddbdd577179286f4134e50941ae4412b1e0
6
+ metadata.gz: 926669f72502f5e091187cf7e5401866924aa93df0960197adf8c844121e97077ccba8ff297c8bf0443880d136bd19e9973312dbdb90ccf59c8a08cfaa5e6235
7
+ data.tar.gz: ee0767b05e9dee4f23aa34fa0fb21e778ef0381aafb56d604ab31329aa59b16f2e73b23c237f3e36e0c982ebce82c01eec460e21091fedc35e396d4e12b3c16f
@@ -5,22 +5,23 @@ require 'turnip/rspec'
5
5
  module Turnip
6
6
  module RSpec
7
7
  class << self
8
- alias_method :original_run, :run
8
+ alias_method :super_run, :run
9
9
 
10
10
  def run(feature_file)
11
- features = original_run(feature_file)
11
+ features = super_run(feature_file)
12
12
  example_groups = ::RSpec.world.example_groups[-features.length..-1]
13
13
 
14
14
  features.zip(example_groups).each do |feature, example_group|
15
- update_metadata(feature, example_group)
15
+ add_steps_to_metadata(feature, example_group)
16
16
  end
17
+ features
17
18
  end
18
19
 
19
20
  #
20
21
  # @param [Turnip::Builder::Feature] feature
21
22
  # @param [RSpec::Core::ExampleGroup] example_group
22
23
  #
23
- def update_metadata(feature, example_group)
24
+ def add_steps_to_metadata(feature, example_group)
24
25
  background_steps = feature.backgrounds.map(&:steps).flatten
25
26
  examples = example_group.children
26
27
 
@@ -1,3 +1,3 @@
1
1
  module Chartspec
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - AlexVangelov