-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actually mounts and curls an API #1927
Conversation
Here's an example of a CHANGELOG.md entry: * [#1927](https://github.com/ruby-grape/grape/pull/1927): Actually mounts and curls an api - [@myxoh](https://github.com/myxoh). Generated by 🚫 danger |
I like it! Would make sure those command line errors are handled, I believe |
I've got rid of the logs. Not sure whether there was something else you were thinking about. Were you thinking about sig trapping? Signal.trap("TERM") do
shutdown()
end |
let!(:server_thread) do | ||
Thread.new do | ||
`fuser -k 9292/tcp 2>/dev/null` | ||
system("rackup spec/integration/real_api/example_api/config.ru 2>/dev/null") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that this call will fail without an exception if, for example, rackup
cannot run. You need to handle the return from it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Rebase/fixup? |
Right. I need to spend some time getting this right, but it's been a very busy month. |
This is a way of doing and end-end test of grape with a sample API and actually performing API calls against it.
I am open to suggestions.
Tests the issue described in: #1901