turnip_formatter 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ module Turnip
|
|
18
18
|
|
19
19
|
def push_scenario_metadata(scenario)
|
20
20
|
steps = scenario.steps
|
21
|
-
example.metadata[:
|
21
|
+
example.metadata[:turnip_formatter].tap do |turnip|
|
22
22
|
steps.each do |step|
|
23
23
|
turnip[:steps] << {
|
24
24
|
name: step.description,
|
@@ -41,7 +41,7 @@ module Turnip
|
|
41
41
|
|
42
42
|
before do
|
43
43
|
example.metadata[:file_path] = feature_file
|
44
|
-
example.metadata[:
|
44
|
+
example.metadata[:turnip_formatter] = { steps: [], tags: [] }
|
45
45
|
|
46
46
|
feature.backgrounds.each do |background|
|
47
47
|
push_scenario_metadata(background)
|
@@ -18,7 +18,7 @@ module TurnipFormatter
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def validation
|
21
|
-
raise NotExistStepsInformationError unless example.metadata.member?(:
|
21
|
+
raise NotExistStepsInformationError unless example.metadata.member?(:turnip_formatter)
|
22
22
|
raise NoFeatureFileError unless feature_file_path.end_with?('.feature')
|
23
23
|
end
|
24
24
|
|
@@ -62,7 +62,7 @@ module TurnipFormatter
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def tags
|
65
|
-
example.metadata[:
|
65
|
+
example.metadata[:turnip_formatter][:tags]
|
66
66
|
end
|
67
67
|
|
68
68
|
def example
|
@@ -72,7 +72,7 @@ module TurnipFormatter
|
|
72
72
|
private
|
73
73
|
|
74
74
|
def descriptions
|
75
|
-
example.metadata[:
|
75
|
+
example.metadata[:turnip_formatter][:steps]
|
76
76
|
end
|
77
77
|
|
78
78
|
def clean_backtrace
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turnip_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: turnip
|