Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
= RSpec HTTP | ||
|
||
RSpec HTTP is a RSpec extension library that adds support for writing specs that cover HTTP based APIs. | ||
RSpec HTTP is a RSpec extension library that adds support for writing specs that cover HTTP based APIs. | ||
|
||
To use this library, adding the rspec-http gem to your Gemfile and add the following line to your spec_helper.rb: | ||
require 'rspec/http' | ||
|
||
This will make matchers such as the ones listed below available to you in your specs. | ||
|
||
response.should be_ok | ||
response.should be_http_ok | ||
|
||
response.should be_unprocessable_entity | ||
response.should be_http_unprocessable_entity | ||
|
||
response.should be_im_a_teapot | ||
response.should be_http_im_a_teapot |