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

Refactoring of sendRequestWithMethod #86

Merged

Conversation

pmkowal
Copy link
Contributor

@pmkowal pmkowal commented Jul 26, 2015

  • Changes:
    Move the code responsible for adding HTTP.Method to params
    dictionary from sendRequestWithMethod method to createRequest
    method.
  • Reason:
    In createRequest method it was possible to pass HTTP.Method using
    both method and params parameter. Passing HTTP.Method as a
    method parameter should be enough.
  • Other changes:
    Update testDELETERequestCreation test

- Changes:
Move the code responsible for adding `HTTP.Method ` to params
dictionary from `sendRequestWithMethod` method to `createRequest`
method.

- Reason:
In `createRequest` method it was possible to pass `HTTP.Method` using
both `method` and `params` parameter. Passing `HTTP.Method` as a
`method` parameter should be enough.

- Other changes:
Update `testDELETERequestCreation` test
@buildasaur
Copy link
Collaborator

Result of Integration 1

Duration: 1 minute and 10 seconds
Result: Perfect build! All 49 tests passed. 👍
Test Coverage: 52%.

czechboy0 pushed a commit that referenced this pull request Jul 26, 2015
@czechboy0 czechboy0 merged commit cf44824 into buildasaurs:swift-2 Jul 26, 2015
@czechboy0
Copy link
Member

Great stuff, thanks @pmkowal! 👍

@pmkowal
Copy link
Contributor Author

pmkowal commented Jul 26, 2015

My pleasure 😉

@pmkowal pmkowal deleted the send-request-with-method-refactoring branch September 12, 2015 19:22
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.

3 participants