Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upEnable warnings during test suite execution and fix most of them #15
Conversation
ivoanjo
added some commits
Aug 28, 2016
beatrichartz
merged commit bf03251
into
beatrichartz:master
Aug 30, 2016
1 check failed
This comment has been minimized.
This comment has been minimized.
Brilliant, thanks for this! - I will take some time looking at the remaining warnings later this week. Out of interest, how are you using configurations in your setup? |
This comment has been minimized.
This comment has been minimized.
Hello! Thanks for the quick answer :) We're using it @Talkdesk to allow configuration for a gem to access an in-house API. (Hopefully both the gem and the API will be public in the near future). On the gem itself we have a simple setup where we setup defaults on configurations based on env vars, but allow users to change them. We have regexes for a couple of options allowing the env vars to be enabled with yes/true/1, but other than that it's pretty straightforward. |
This comment has been minimized.
This comment has been minimized.
Your changes are released in |
ivoanjo commentedAug 28, 2016
One of the projects I am involved with makes use of the configurations gem (thanks so much for your work, btw!) and we recently turned on the rspec option to run our specs with warnings, which helped us fix a lot of warnings, but also got us a lot of warnings from gems we use.
So I'm now embarking on a quest to solve as many warnings as I can, so we can get clean specs again :)
I was able to fix most of the warnings I got when running the
configurations
specs, and I hope my approach is acceptable. I also found a bug in thetest_configure_synchronized.rb
spec that was resulting in a warning.Thanks for your consideration!