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 +4 -4
- data/lib/chartspec/ext/turnip/rspec.rb +5 -4
- data/lib/chartspec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfff92c7d2ad18db04d89b49e5245d3fb09412b6
|
4
|
+
data.tar.gz: 37ae98e4409eefb080bf0abd42d7fba35627adfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 :
|
8
|
+
alias_method :super_run, :run
|
9
9
|
|
10
10
|
def run(feature_file)
|
11
|
-
features =
|
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
|
-
|
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
|
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
|
|
data/lib/chartspec/version.rb
CHANGED