Skip to content

Conversation

mackenziehicks
Copy link

@mackenziehicks mackenziehicks commented Nov 2, 2016

What's in this PR?

Added default attributes to the request_update function in api_case.ex in order to assist with controller test refactoring.

References

Progress on: #413

@mackenziehicks mackenziehicks changed the title Refactoring request_create test helper to include default attrs Refactoring request_update test helper to include default attrs Nov 2, 2016
def request_update(conn, :not_found), do: conn |> request_update(-1, %{})
def request_update(conn, attrs), do: conn |> request_update(default_record, attrs)
def request_update(conn, resource_or_id, attrs) do
def request_update(conn, attrs \\ %{}), do: conn |> request_update(default_record, attrs)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this line needs to move above not_found.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 95.153% when pulling 403167b on refactor-request-update-test-helper into af079d0 on develop.

Copy link
Contributor

@joshsmith joshsmith left a comment

Choose a reason for hiding this comment

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

Just rebase and squash!

@mackenziehicks mackenziehicks force-pushed the refactor-request-update-test-helper branch from 403167b to fd8bda8 Compare November 2, 2016 23:23
@mackenziehicks mackenziehicks self-assigned this Nov 2, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 95.153% when pulling fd8bda8 on refactor-request-update-test-helper into af079d0 on develop.

@mackenziehicks mackenziehicks merged commit f9eef9d into develop Nov 2, 2016
@mackenziehicks mackenziehicks deleted the refactor-request-update-test-helper branch November 2, 2016 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants