open_api_import 0.6.0 → 0.6.1
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/README.md +22 -0
- 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: b2246357250ec6154aad196f4c649230ffe3c5cf02d671b5a0e6fbbdfa833bec
|
|
4
|
+
data.tar.gz: '081f82e642b1e7b7811900a4ced074635887e62dbdc8ae9158e5fe01aa872db2'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d274e4e0ddf3d1b8eb5341669171abaf98114e957aa685c1ab3d1d373ce7bc424b401adb31b73bc1a2443f363bb16f7da3423d82f28bcacc199c830e3e1e27e
|
|
7
|
+
data.tar.gz: 7edbd4542c0865f71ff7a4603d2baba006fa69cd9605dab340218204b8ab6eb29e94bb3de3c423c5665eb229ac7a61aca9a8b70298cc10074cb4b062bde8ed16
|
data/README.md
CHANGED
|
@@ -44,6 +44,28 @@ This is an example of a generated request hash:
|
|
|
44
44
|
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
If you want to automatically generate RSpec tests for every end point of your Swagger file, use the create_tests gem: https://github.com/MarioRuiz/create_tests
|
|
48
|
+
|
|
49
|
+
```ruby
|
|
50
|
+
require 'create_tests'
|
|
51
|
+
|
|
52
|
+
CreateTests.from "./requests/uber.yaml.rb"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
This is the output of the previous run:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
- Logs: ./requests/uber.yaml.rb_create_tests.log
|
|
59
|
+
** Pay attention, if any of the test files exist or the help file exist only will be added the tests, methods that are missing.
|
|
60
|
+
- Settings: ./settings/general.rb
|
|
61
|
+
- Test created: ./spec/User/profile_user_spec.rb
|
|
62
|
+
- Test created: ./spec/User/activity_user_spec.rb
|
|
63
|
+
- Test created: ./spec/Products/list_products_spec.rb
|
|
64
|
+
- Test created: ./spec/Estimates/price_estimates_spec.rb
|
|
65
|
+
- Test created: ./spec/Estimates/time_estimates_spec.rb
|
|
66
|
+
- Helper: ./spec/helper.rb
|
|
67
|
+
```
|
|
68
|
+
|
|
47
69
|
## Installation
|
|
48
70
|
|
|
49
71
|
Install it yourself as:
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: open_api_import
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
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-
|
|
11
|
+
date: 2019-03-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oas_parser
|