testrail-ruby 0.0.17 → 0.0.18
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/endpoints.rb +5 -5
- data/lib/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: 27e72400f39838faea89f69bc130f74d61ab4a09
|
4
|
+
data.tar.gz: 720c8a16f2885fedd9e0414a6013f341f7ac4529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bb56b22d5c1b2f8f91ddd5751ed66956786de307c7f059685ee9c5e76e72c0e9512110597d090b4a0b8a713f6cc3f9ed79acd06b40992d4812d8a72d448ed64
|
7
|
+
data.tar.gz: 2d400e9fa4ff0949c3c598408bc10041fe1840f4f3399bb843b289c2fafca3583769078e93fe30222d8c7de11ba3b8c218a4065c12e3f66f9434f87307fd5529
|
data/lib/endpoints.rb
CHANGED
@@ -40,7 +40,7 @@ module Endpoints
|
|
40
40
|
# }
|
41
41
|
# @see http://docs.gurock.com/testrail-api2/reference-cases
|
42
42
|
def get_case(case_id)
|
43
|
-
send_get("get_case
|
43
|
+
send_get("get_case/#{case_id.to_s}")
|
44
44
|
end
|
45
45
|
|
46
46
|
##########################++
|
@@ -73,7 +73,7 @@ module Endpoints
|
|
73
73
|
# ]
|
74
74
|
# @see http://docs.gurock.com/testrail-api2/reference-cases
|
75
75
|
def get_cases(project_id, opts = {})
|
76
|
-
send_get("get_cases
|
76
|
+
send_get("get_cases/#{project_id.to_s}", opts)
|
77
77
|
end
|
78
78
|
|
79
79
|
##################deprecated
|
@@ -82,7 +82,7 @@ module Endpoints
|
|
82
82
|
# Return all test cases in a given project by suite_id and section_id
|
83
83
|
# @deprecated use get_cases instead
|
84
84
|
def get_cases_by_section(project_id, suite_id, section_id, opts = {})
|
85
|
-
send_get("get_cases
|
85
|
+
send_get("get_cases/#{project_id.to_s}&suite_id=#{suite_id.to_s}§ion_id=#{section_id.to_s}", opts)
|
86
86
|
end
|
87
87
|
|
88
88
|
##################deprecated
|
@@ -91,7 +91,7 @@ module Endpoints
|
|
91
91
|
# Return all test cases in a given project by suite_id
|
92
92
|
# @deprecated use get_cases instead
|
93
93
|
def get_cases_by_suite(project_id, suite_id, opts = {})
|
94
|
-
send_get("get_cases
|
94
|
+
send_get("get_cases/#{project_id.to_s}&suite_id=#{suite_id.to_s}", opts)
|
95
95
|
end
|
96
96
|
|
97
97
|
############################
|
@@ -113,7 +113,7 @@ module Endpoints
|
|
113
113
|
# index.php?/api/v2/add_case/1&title="foo"&type_id=1
|
114
114
|
# @see http://docs.gurock.com/testrail-api2/reference-cases
|
115
115
|
def add_case(section_id, opts = {})
|
116
|
-
send_post("add_case
|
116
|
+
send_post("add_case/#{section_id.to_s}", opts)
|
117
117
|
end
|
118
118
|
|
119
119
|
############################
|
data/lib/version.rb
CHANGED