cukerail 0.5.3 → 0.5.4
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.
- checksums.yaml +4 -4
- data/lib/cukerail/json.rb +5 -1
- data/lib/cukerail/version.rb +1 -1
- data/lib/cukerail.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b97af2a8a261cae8837134229e16fde8acfeaea4
|
|
4
|
+
data.tar.gz: 74e83722bb11ac64e3537f1ff8f429312307d5be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: caa877a591dd30ca8a99410f135e0b58f73d5b19a6ae60add1a278aa76390ed246309faa64f4d7574aed385c109c3facf79675040419b91c2706cd8f9cd9203d
|
|
7
|
+
data.tar.gz: fe3c942d178559cf5ba48c803dedf39e4ef6d704648b0ccc4afd9a802ed26de980b75f1486f96c3317643845070bd2e18e0a81a84a0f9a7ba20c2355d6899779
|
data/lib/cukerail/json.rb
CHANGED
|
@@ -26,7 +26,11 @@ module Cukerail
|
|
|
26
26
|
def examples_table(examples_table)
|
|
27
27
|
# puts 'in examples table'
|
|
28
28
|
# We want the row data to be used in making the full scenario name
|
|
29
|
-
|
|
29
|
+
if ENV['OLD_STYLE_OUTLINE_NAMES']
|
|
30
|
+
@example_id = @row.send(:data).map{|k,v| "#{k}='#{v}'"}.join(", ")
|
|
31
|
+
else
|
|
32
|
+
@example_id = @row.send(:data).map{|k,v| "#{k}=#{v}"}.join(", ")
|
|
33
|
+
end
|
|
30
34
|
@examples_table_tags = create_tags_array(examples_table.tags) unless examples_table.tags.empty?
|
|
31
35
|
@examples_table_comments = ::Cucumber::Formatter.create_comments_array(examples_table.comments) unless examples_table.comments.empty?
|
|
32
36
|
end
|
data/lib/cukerail/version.rb
CHANGED
data/lib/cukerail.rb
CHANGED
|
@@ -178,7 +178,11 @@ module Cukerail
|
|
|
178
178
|
requirements_tags = all_tags(test_case).select{|tag| tag.name =~ /req_\w+/}.map{|tag| /req_(\w+)/.match(tag.name)[1]}.join(', ')
|
|
179
179
|
if test_case.source.last.is_a?(Cucumber::Core::Ast::ExamplesTable::Row)
|
|
180
180
|
title = test_case.source.select{|s| s.is_a?(Cucumber::Core::Ast::ScenarioOutline)}.first.name
|
|
181
|
-
|
|
181
|
+
if ENV['OLD_STYLE_OUTLINE_NAMES']
|
|
182
|
+
title += ' :: ' + test_case.source.last.send(:data).map{|key,value| "#{key}='#{value}'"}.join(', ')
|
|
183
|
+
else
|
|
184
|
+
title += " " + test_case.source.last.send(:data).map{|key,value| "#{key}=#{value}"}.join(', ')
|
|
185
|
+
end
|
|
182
186
|
else
|
|
183
187
|
title = test_case.source.last.name
|
|
184
188
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cukerail
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Small
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06-
|
|
11
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cucumber
|