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

Fix specs not making any assertions #548

Merged
merged 2 commits into from Aug 27, 2015
Merged

Fix specs not making any assertions #548

merged 2 commits into from Aug 27, 2015

Conversation

createdbypete
Copy link
Contributor

While working on the gem I noticed a few Ruby warnings that could be easily fixed and also a couple of specs executing comparisons but not making any assertions.

These were found by running:

$ bundle exec rspec --warnings

Side note: Today I learned Ruby does not like private attr_reader, the alternative is to raise visibility to protected or just use the instance variables. https://bugs.ruby-lang.org/issues/10967

@semmons99
Copy link
Member

Please make two pull requests. I won't merge the attr_accessor change without more info. I only use private attr_accessor, no instance variables.

@createdbypete
Copy link
Contributor Author

@semmons99 no problem, that warning about private attributes is new to me as well.

Edit: I found https://bugs.ruby-lang.org/issues/10967 talking about removing this "private attribute" warning. Personally I use this all the time so would be nice to know it doesn't generate warnings.

@semmons99
Copy link
Member

@createdbypete just need to update the CHANGELOG.md file with what this change does.

- Warning: possibly useless use of == in void context
- FOO currency needed to be modified to match expected decimal places
 - ambiguous first argument
 - unused variable
@createdbypete
Copy link
Contributor Author

Updated the change log.

semmons99 added a commit that referenced this pull request Aug 27, 2015
Fix specs not making any assertions
@semmons99 semmons99 merged commit 17ce620 into RubyMoney:master Aug 27, 2015
@semmons99
Copy link
Member

Thanks!

@createdbypete createdbypete deleted the fix-spec-warnings branch August 29, 2015 13:09
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

2 participants