testrail-rspec 0.1.6 → 0.1.7
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/testrail-rspec/update-testrails.rb +5 -4
- data/lib/testrail-rspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3746fbe99cd79d2acd0003cc61ab00b2113e3d03f09d610cc3a2c5a548de63b1
|
|
4
|
+
data.tar.gz: 390f1dcfdb5283f97ad6670528cebc717e1cdaee10905534faaf8ef764b49dd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a203dee299594b3144b486c97853fd8b0103306bbba1b0e30ebdafe994e1274c676f0c932eb867a0368ac6338f9685fd5750fe7726229f99320f13aedd518eb0
|
|
7
|
+
data.tar.gz: 4b975cd0a92bd62a10e80eb027b0e87a6d238d329ab1d17d209aff02e6b6d44856a020a5a53f7a69fa951ce2f84fd9f4e72a02df018325f8cf843b03404484a3
|
|
@@ -112,13 +112,14 @@ module TestrailRSpec
|
|
|
112
112
|
def check_avail(label, id)
|
|
113
113
|
case label
|
|
114
114
|
when :project_id
|
|
115
|
-
warn("\n###################### \ninvalid #project_id: #{id} \n######################") if client.send_get("get_project/#{id}").nil?
|
|
115
|
+
warn("\n###################### \ninvalid #project_id: #{id} \n######################") if client.send_get("get_project/#{id}").nil? || client.send_get("get_project/#{id}")['error'] != nil
|
|
116
116
|
when :suite_id
|
|
117
|
-
warn("\n###################### \ninvalid #suite_id: #{id} \n######################") if client.send_get("get_suite/#{id}").nil?
|
|
117
|
+
warn("\n###################### \ninvalid #suite_id: #{id} \n######################") if client.send_get("get_suite/#{id}").nil? || client.send_get("get_suite/#{id}")['error'] != nil
|
|
118
118
|
when :run_id
|
|
119
|
-
warn("\n###################### \ninvalid #run_id: #{id} \n######################") if client.send_get("get_run/#{id}").nil?
|
|
119
|
+
warn("\n###################### \ninvalid #run_id: #{id} \n######################") if client.send_get("get_run/#{id}").nil? || client.send_get("get_run/#{id}")['error'] != nil
|
|
120
120
|
when :case_id
|
|
121
|
-
|
|
121
|
+
return if client.send_get("get_case/#{id}").class == Integer
|
|
122
|
+
warn("\n###################### \ninvalid #case_id: #{id} \n######################") if client.send_get("get_case/#{id}").nil? || client.send_get("get_case/#{id}")['error'] != nil
|
|
122
123
|
else
|
|
123
124
|
p "no config available"
|
|
124
125
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: testrail-rspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Prashanth Sams
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|