Skip to content

Commit

Permalink
Add code method for expect_status check
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyas Agarwal committed Nov 5, 2018
1 parent 1d80d28 commit 082b6c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/airborne/faraday_requester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ def base_url
end
end
end

module FaradayResponse
def code
status
end
end

Faraday::Response.send(:include, FaradayResponse)

0 comments on commit 082b6c1

Please sign in to comment.