testrail-rspec 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: ce6e7c3227ab4805455ffcce099437f8685260a0a25bc4a0fb66ed72048b6f2f
4
- data.tar.gz: 41160a58d5b6ba71cb58b409832d9f0fd782d91b70449c711f08092ed37dba40
3
+ metadata.gz: 1c70ba423972b92769646ae9cc25f9defea53cb5900d84404df61182866d21c9
4
+ data.tar.gz: 8e6d73a47e9af513521de1b4903914eb99c5fab8c262f01a14bb0bdb1c1778b4
5
5
  SHA512:
6
- metadata.gz: a06a57ebb274320420ece55a89b0ef5867e92efbcd081cb7c50bb43b8918aca5e4613b939eded0f607445596c62dcaad814405c68303544fa23b017da88d59f9
7
- data.tar.gz: 48be8a5e373230b268587d346e2fd2081e7f451d434ad4c0578071f287e672617e60a62e3fae0701beb05755634468ed1638fa50cb7472ffcc6b44adf9ed33bc
6
+ metadata.gz: b72657f0b80dafb37a0c7e2a126ab31f839f5e9e2ac0c27cacc3e3250fcdd6709d81fc9e4505e19a010ed4199e345e8a03c8664539eab1de1a6dc51781e1f417
7
+ data.tar.gz: 7253369dd40a49ad1756be0f4098f901b76352289943dfd6f963f1cf0874791a611481c77e5b713ae7a8b97ccee3d6834aee87ab28c61222ed32f0e8c0e77c88
@@ -86,6 +86,8 @@ module TestRail
86
86
  end
87
87
  response = conn.request(request)
88
88
 
89
+ return if response.code == "400"
90
+
89
91
  if response.body && !response.body.empty?
90
92
  result = JSON.parse(response.body)
91
93
  return result['id'] if @add_test
@@ -22,7 +22,7 @@ module TestrailRSpec
22
22
  response = {}
23
23
 
24
24
  case_list = []
25
- @scenario.metadata[:description].split(' ').map do |e|
25
+ @scenario.full_description.split(' ').map do |e|
26
26
  val = e.scan(/\d+/).first
27
27
  next if val.nil?
28
28
  case_list << val
@@ -1,3 +1,3 @@
1
1
  module TestrailRspec
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  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
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prashanth Sams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-17 00:00:00.000000000 Z
11
+ date: 2020-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler