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 tests to SubmitActionsTest, fix DELETE in ApiEndpointUtils #116

Merged
merged 3 commits into from
Mar 9, 2015
Merged

Add tests to SubmitActionsTest, fix DELETE in ApiEndpointUtils #116

merged 3 commits into from
Mar 9, 2015

Conversation

Anseriform
Copy link
Contributor

As suggested by @sfat, I made some tests for SubmitActions.
Also changed /api/delete to /api/del in ApiEndpointUtils.

.thenReturn(responseEmpty);

// Delete thing succesfully
assertEquals(submitAction.delete("fullname"), true);
Copy link

Choose a reason for hiding this comment

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

You can use assertTrue() or asserFalse() for simplicity. Can you do for the rest, as well? Don't want to leave you a comment for each of them :)

@sfat sfat added this to the 1.0.3 milestone Mar 8, 2015
as suggested by @sfat, replaced assertEquals(res, false); with assertFalse(res);
@sfat
Copy link

sfat commented Mar 9, 2015

@Anseriform thanks for the contribution! Really appreciate it

sfat added a commit that referenced this pull request Mar 9, 2015
Add tests to SubmitActionsTest, fix DELETE in ApiEndpointUtils
@sfat sfat merged commit 95d3962 into jReddit:master Mar 9, 2015
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.

2 participants