create_tests 0.3.1 → 0.3.2
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/create_tests.rb +2 -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: 1f3618181d2f89dad3b347b31069e4c73aedb456d55be8afd3f857b064db249b
|
|
4
|
+
data.tar.gz: 153ab18fbba09d09eb069c74adcbc66b91e10ecb87d31664ad3680ab6d5b73d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 473bdbcefc8941b29696d927fd50457a9bdaf8046219d7ddc0bbcd7d1ef7eeba2b869baf6207cd94e6fe24d808ecb036e5789f8eb8f691921a2bd7112131e24d
|
|
7
|
+
data.tar.gz: 32b83221db3d94d68c7929ee837fa84c159bf3a12aa7e292539d5914e24921950a9cc84890e86fef20c6424bc33062338bd94e3feb3910e8b7ac0ab2fec9e5cf
|
data/lib/create_tests.rb
CHANGED
|
@@ -300,6 +300,7 @@ class CreateTests
|
|
|
300
300
|
before(:all) do
|
|
301
301
|
@http = NiceHttp.new()
|
|
302
302
|
#{params_declaration_txt}@request = #{req_txt}
|
|
303
|
+
@http.logger.info(\"\\n\#{'+'*50} Before All ends \#{'+'*50}\")
|
|
303
304
|
end
|
|
304
305
|
before(:each) do |example|
|
|
305
306
|
@http.logger.info(\"\\n\\n\#{'='*100}\\nTest: \#{example.description}\\n\#{'-'*100}\")
|
|
@@ -330,7 +331,7 @@ class CreateTests
|
|
|
330
331
|
tests[title] = "do
|
|
331
332
|
http = NiceHttp.new()
|
|
332
333
|
http.headers = {}
|
|
333
|
-
resp =
|
|
334
|
+
resp = http.#{request[:method]}(@request)
|
|
334
335
|
expect(resp.code).to be_between('400', '499')\n"
|
|
335
336
|
if request.key?(:responses) and (request[:responses].keys.select{|c| c.to_s.to_i>=400&&c.to_s.to_i<=499}).size>0
|
|
336
337
|
tests[title] += "expect(NiceHash.compare_structure(@request.responses[resp.code.to_sym].data, resp.data.json)).to eq true
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: create_tests
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mario Ruiz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-03-
|
|
11
|
+
date: 2019-03-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rufo
|