itriagetestrail 1.0.0 → 1.0.1

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: be91f062caceb9b66d0237fdba6951b9b3fbca3e
4
- data.tar.gz: f3109eb7e0c22b7de9aae8de26d03517d466e003
3
+ metadata.gz: 432fa8e6b5a030aaca3eed94a324d003170fb0cf
4
+ data.tar.gz: 13f1cc9d4e0df1fd3c27603f4c323c3b17d83124
5
5
  SHA512:
6
- metadata.gz: acb6192da2c95a003a4797964307fd33b0279d7ccb8e76e9fc32988c7f11588cdb1c5f7e20fc448efffb9578208ca381d9ae71e2b4ee3f7e69904f6747f63574
7
- data.tar.gz: 60d0c36926d86c4fa944b856e578818b532c2142a94ac1c9508c983027797f08a68ba9b3c15084651239f36a3ea7dfa2f7df206eac743a99360865f8432dceea
6
+ metadata.gz: ace825d2e12f6e999f824651104f949498267f6d5229d1ad1523796cfc5c120d345c8f789c7ef5409205117fa92fa4ffe8a8a2379f5f524bbc630eaed2f76021
7
+ data.tar.gz: f9a604a63303972818a1c8ed8f30572bec117d98cb8de51c6d9774df140b41a0f8e1ff0b80647d568a3628b64b8a40c07308e4c12c1ac4befa8f01dc361bd67b
@@ -6,12 +6,11 @@ module Itriagetestrail
6
6
  return if execute == false
7
7
  begin
8
8
  if scenario.class.to_s == 'Cucumber::RunningTestCase::ScenarioOutlineExample'
9
- scenario_cell_id = []
10
- scenario.name.split('|')[1..50].each {|cell| scenario_cell_id << cell.gsub(/[\| "]/, "") }
11
- @scenario_title = "#{scenario.scenario_outline.name.match(/\b.*Example/)}: #{scenario_cell_id}"
12
- @external_id = "#{scenario.feature.short_name};#{@scenario_title}"[0,249]
9
+ scenario.cell_values.each {|cell| cell.gsub!(/\s+/, "")}
10
+ @scenario_title = "#{scenario.name.match(/\b.*Example/)}: #{scenario.cell_values}"
11
+ @external_id = "#{scenario.feature.short_name}\;#{@scenario_title}"[0,249]
13
12
  else
14
- @external_id = "#{scenario.feature.short_name};#{scenario.name}"
13
+ @external_id = "#{scenario.feature.short_name}\;#{scenario.name}"
15
14
  @scenario_title = scenario.name
16
15
  end
17
16
 
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itriagetestrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069