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

Class methods on Bump was not private as intended #52

Merged
merged 2 commits into from May 2, 2016

Conversation

bergholdt
Copy link
Contributor

Intended private methods on Bump::Bump was public available.

This pull request makes them private and all existing test passed after the fix.

Given that the methods might have been used by somebody this change could surprise users.

@@ -421,6 +421,15 @@ module Foo
end
end

context 'verify private class mothods' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

private methods don't really need tests ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Used the test to verify that private notation had an effect or not.

Before this change the class only had 2 private class methods - inherited from Object
After change there was 19 private methods

@gregorym gregorym merged commit 691dad3 into gregorym:master May 2, 2016
@gregorym
Copy link
Owner

gregorym commented May 2, 2016

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.

None yet

3 participants