Skip to content

Commit c524493

Browse files
authored
Update README.md
I think overwriting the "app" method is the better option instead of using Test.observe
1 parent 21be67d commit c524493

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ require 'openapi_first'
1616
OpenapiFirst::Test.setup do |config|
1717
config.register('openapi/openapi.yaml')
1818
end
19+
1920
require 'application' # Load Application code
20-
OpenapiFirst::Test.observe(Application)
21+
RSpec.configure do |config|
22+
config.include OpenapiFirst::Test::Methods[MyApp], type: :request
23+
end
2124
```
2225

2326
## Contents

0 commit comments

Comments
 (0)