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

Tests for NewProject module #84

Merged
merged 5 commits into from
May 24, 2019

Conversation

HoffsMH
Copy link
Contributor

@HoffsMH HoffsMH commented May 20, 2019

Still WIP

Connects to #48 increases code coverage for creating a new project!
Since I have another PR open for increasing code coverage for the GithubCommands module I made a mock for that module.

This doesn't yet cover all the paths in project creation, still need to cover when creating web-hooks fail.

It definitely feels a little iffy to be specifying this amount of Mox expectations in each test. If there is another pattern that would work here I am all ears!

Copy link
Contributor

@bryanjos bryanjos left a comment

Choose a reason for hiding this comment

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

Overall looks good! Just one small change

@@ -1,4 +1,6 @@
Mox.defmock(Slax.HttpMock, for: Slax.Http.Behaviour)
Mox.defmock(Slax.Commands.GithubCommandsMock, for: Slax.Commands.GithubCommands.Behaviour)
Slax.Command.GithubCommandMock
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Slax.Command.GithubCommandMock

@HoffsMH
Copy link
Contributor Author

HoffsMH commented May 24, 2019

@bryanjos updated 👍

@bryanjos bryanjos merged commit 022891e into revelrylabs:master May 24, 2019
@bryanjos
Copy link
Contributor

Thanks!

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