You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-Or modify your app to wrap the `call` method of your Rack app Class.
85
-
86
-
NOTE:This is still work in progress. It works with basic Sinatra apps, but does not work with HanamiorRails out of the box, yet. PRs welcome 🤗
87
-
88
-
```ruby
89
-
OpenapiFirst::Test.observe(MyApplication)
90
-
```
91
84
4. Run your tests. TheCoverage feature will tell you about missing or invalid requests/responses.
92
85
93
86
(✷1): It does not matter what method of openapi_first you use to validate requests/responses. Instead of using`OpenapiFirstTest.app` to wrap your application, you could also use the [middlewares](#rack-middlewares) or [test assertion method](#test-assertions), but you would have to do that for all requests/responses defined in your API description to make coverage work.
0 commit comments