Always check the result of `send_request_*` for `nil` in case of a connection error. Also, if you're just checking the existence of a substring and don't need any features of regular expressions, you should just use `include?`
```ruby
if res && res.body.include?("Successfully run")
```