Skip to content
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

Add documentation and specs for stubbing out options requests #141

Merged
merged 4 commits into from
May 6, 2016

Conversation

rimian
Copy link
Contributor

@rimian rimian commented Feb 27, 2016

I was having trouble stubbing out OPTIONS requests. Here are some specs that prove it works.


it 'should proxy OPTIONS requests' do
expect(http.run_request(:options, '/echo', nil, nil).body).to eql 'OPTIONS /echo'
end
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It collides with Faraday #options here. This work around does the trick.

@ronwsmith
Copy link
Collaborator

Thanks for the contribution! Mind adding something to the README too?

@rimian
Copy link
Contributor Author

rimian commented Apr 11, 2016

@ronwsmith done! :)

@ronwsmith ronwsmith changed the title stubs out options requests Add documentation and specs for stubbing out options requests May 6, 2016
@ronwsmith ronwsmith merged commit fa9fc7f into oesmith:master May 6, 2016
@ronwsmith
Copy link
Collaborator

Included in v0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants