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
Copy file name to clipboardExpand all lines: README.md
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2295,14 +2295,14 @@ end
2295
2295
2296
2296
## Writing Tests
2297
2297
2298
-
You can test a Grape API with RSpec by making HTTP requests and examining the response.
2299
-
2300
2298
### Writing Tests with Rack
2301
2299
2302
2300
Use `rack-test` and define your API as `app`.
2303
2301
2304
2302
#### RSpec
2305
2303
2304
+
You can test a Grape API with RSpec by making HTTP requests and examining the response.
2305
+
2306
2306
```ruby
2307
2307
require'spec_helper'
2308
2308
@@ -2332,6 +2332,28 @@ describe Twitter::API do
2332
2332
end
2333
2333
```
2334
2334
2335
+
#### Airborne
2336
+
2337
+
You can test with other RSpec-based frameworks, including [Airborne](https://github.com/brooklynDev/airborne), which uses `rack-test` to make requests.
0 commit comments