Skip to content

Commit 87aa539

Browse files
committed
changed the README to specify that you must use the response_* functions to access data from the last response.
1 parent 9019dde commit 87aa539

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,3 +628,4 @@ $ rspec spec/acceptance --format RspecApiDocumentation::ApiFormatter
628628

629629
- rspec_api_documentation relies on a variable `client` to be the test client. If you define your own `client` please configure rspec_api_documentation to use another one, see Configuration above.
630630
- We make heavy use of RSpec metadata, you can actually use the entire gem without the DSL if you hand write the metadata.
631+
- You must use `response_body`, `status`, `response_content_type`, etc. to access data from the last response. You will not be able to use `response.body` or `response.status` as the response object will not be created.

0 commit comments

Comments
 (0)