airborne
airborne copied to clipboard
Include Rack::Response::Helpers in responses
This includes Rack::Response::Helpers methods in the Airborne responses. This enables the use of matchers like those commonly used with ActionDispatch::TestResponse.
i.e.
expect(response).to be_success
expect(response).to be_redirect
expect(response).to be_error
# etc.
A few other notes:
- I added a
rest_client_optionssetting (currently being used to setmax_redirects) - I had to change the way that the requester module is accessed in
base.rb. I was encountering an issue in the specs where onceAirborne.configuration.rack_appwas set it impacted other specs (that expected this value to benil). I believe this issue is not showing itself on master sincerack_sinatra_spec.rbis loaded last.
Coverage increased (+0.05%) to 99.019% when pulling 731802f553a5e83a012ecbbc6d80275f8948e28a on scttnlsn:rack-helpers into 3cc4112ae3f2f64aa35b3c365bc67ee7c8a7d5cf on brooklynDev:master.
Coverage increased (+0.05%) to 99.019% when pulling 1eb107dad6df1055c9df840f0b58c61050c2b36c on scttnlsn:rack-helpers into 3cc4112ae3f2f64aa35b3c365bc67ee7c8a7d5cf on brooklynDev:master.
Fixed the merge conflicts here. Any interest in this PR?