cukerail 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cukerail/json.rb +1 -1
- data/lib/cukerail/version.rb +1 -1
- data/lib/cukerail.rb +3 -3
- 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: 606e702c372b897617e32fe5bc15d596e91eca82
|
4
|
+
data.tar.gz: 225051b98f67d0ea41cab6c9e6051a5ddef68521
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78f238f3710f0fa8a6002affeffc642ce7c37865e8296641411a98eb62cdcfb9c22928c4f8510a93d83e1c777c5ee2d1a381ad91fd081fce9dc9aa7f11a29cd9
|
7
|
+
data.tar.gz: 943fff38faf39122dd08e4cf6c79992a65bc4a58ddd8871b60db71f14aa784578cbf080db08c934f3bba2751b3e53a9193561e0806ada84376f3623bf22afe81
|
data/lib/cukerail/json.rb
CHANGED
@@ -7,7 +7,7 @@ module Cukerail
|
|
7
7
|
@test_case_hash = {
|
8
8
|
id: create_id(scenario) + ';' + (@example_id.gsub(' ','').gsub(',',';')),
|
9
9
|
keyword: scenario.keyword,
|
10
|
-
name: scenario.name + ' ' + @example_id,
|
10
|
+
name: scenario.name + (ENV['OLD_STYLE_OUTLINE_NAMES'] ? ' :: ' : " ") + @example_id,
|
11
11
|
description: scenario.description,
|
12
12
|
line: @row.location.line,
|
13
13
|
type: 'scenario'
|
data/lib/cukerail/version.rb
CHANGED
data/lib/cukerail.rb
CHANGED
@@ -23,8 +23,8 @@ module Cukerail
|
|
23
23
|
@id = get_id(test_case)
|
24
24
|
raise 'No id found' unless @id
|
25
25
|
send_steps(test_case,@id)
|
26
|
-
if ENV['UPDATE_SOURCE']
|
27
|
-
update_source_file(test_case,@id)
|
26
|
+
if ENV['UPDATE_SOURCE'] && !test_case.source.any?{|h| h.is_a?(Cucumber::Core::Ast::ScenarioOutline)}
|
27
|
+
update_source_file(test_case,@id)
|
28
28
|
end
|
29
29
|
if ENV['TESTRUN']
|
30
30
|
send_result(test_case,result,@id,ENV['TESTRUN'].to_i)
|
@@ -178,7 +178,7 @@ 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
|
-
title += " "+test_case.source.last.send(:data).map{|key,value| "#{key}=#{value}"}.join(', ')
|
181
|
+
title += (ENV['OLD_STYLE_OUTLINE_NAMES'] ? ' :: ' : " ")+test_case.source.last.send(:data).map{|key,value| "#{key}=#{value}"}.join(', ')
|
182
182
|
else
|
183
183
|
title = test_case.source.last.name
|
184
184
|
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.3
|
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-
|
11
|
+
date: 2016-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|