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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd409540237e0b7a67a323e92d46254cf63aefe515773cbee86a4a758eee1b47
4
- data.tar.gz: 458b9577143635e64f136d31aafff98c62a9b2f77c057f7d6cf19c340a5c85fe
3
+ metadata.gz: b2246357250ec6154aad196f4c649230ffe3c5cf02d671b5a0e6fbbdfa833bec
4
+ data.tar.gz: '081f82e642b1e7b7811900a4ced074635887e62dbdc8ae9158e5fe01aa872db2'
5
5
  SHA512:
6
- metadata.gz: 4c07b1576d2bae97f39a0ba5ee9e1b6742180cefb6629d7b54462af1c2ee3b67e8e2e2a648164b79de562b6b757967aadef4564b2d0deeaae48e7627de47a4c9
7
- data.tar.gz: 2380b32911e136fd69f7d7d90cdc6f1123ce76e3bf3f135b8d66e061eb0fde86b830583fbf8795414eb52eb608f96721e9dd80074bd741ccefb854506b54fc03
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.0
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-02-28 00:00:00.000000000 Z
11
+ date: 2019-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oas_parser