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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcf11c201ebb1d8a3983d0bf8f80ea5601a8f8d1
4
- data.tar.gz: 449e790155052adc1014ecd84fc9ebcffbef8ab5
3
+ metadata.gz: 606e702c372b897617e32fe5bc15d596e91eca82
4
+ data.tar.gz: 225051b98f67d0ea41cab6c9e6051a5ddef68521
5
5
  SHA512:
6
- metadata.gz: 0422b5e13cb506b90f6caaad39065a215fb5139c69c06029de08df2fa68084f9ddb918ee0a6430a03023d5a79760a8e32fc37fffdfabb089d770e87a62bc3464
7
- data.tar.gz: 2867d379b4c42b7bd9640fec0cfc4b70cd9a2f6025a8a33da541d10e6207a5d62c6efa1327b5fd582c43bb5a92284223ee00eb1ce8558976197afb023cc78eb5
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'
@@ -1,3 +1,3 @@
1
1
  module Cukerail
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
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) unless test_case.source.any?{|h| h.is_a?(Cucumber::Core::Ast::ScenarioOutline)}
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.2
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-05-05 00:00:00.000000000 Z
11
+ date: 2016-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber