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 +4 -4
- data/lib/itriagetestrail/trcucumber20.rb +4 -5
- data/lib/itriagetestrail/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 432fa8e6b5a030aaca3eed94a324d003170fb0cf
|
4
|
+
data.tar.gz: 13f1cc9d4e0df1fd3c27603f4c323c3b17d83124
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
10
|
-
scenario.name.
|
11
|
-
@
|
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}
|
13
|
+
@external_id = "#{scenario.feature.short_name}\;#{scenario.name}"
|
15
14
|
@scenario_title = scenario.name
|
16
15
|
end
|
17
16
|
|