Comments (5)
Hmm. I rarely use -w because I don't agree that everything they warn about is actually a problem. In this case I'm a bit shocked, since "instance variables default to nil" is one of the features that makes Ruby such a concise language. I'm reluctant to clutter our code with a pointless initializer. OTOH, the customer is king... so I'd be happy to hear arguments on the other side.
from wrong.
My argument would be that if you make a gem run without warnings, it can be cleanly used by people who like using -w
. That's why I'm running my tests with warnings on, since they're tests for a gem.
from wrong.
I hate it when people come up with reasonable arguments!
OK, you're probably right. This would fall under the "it's a library, so you can't just do anything you want" category, along with monkey patching.
from wrong.
Fixed with release 0.5.4 (and .5 and .6 ... don't ask!) -- please confirm.
from wrong.
Yes, confirmed. Thanks.
from wrong.
Related Issues (20)
- lines are a *little* too long for rspec HOT 1
- Puzzling behavior with eventually and rspec be_nil matcher
- Project name feels wrong - can't google it :( HOT 4
- Cannot install 'wrong' gem because of sexp_processor dependency HOT 2
- wrong causes assert_select to fail HOT 1
- Wrong + Zeus
- Misleading output when variables inside assert block have gone out of scope HOT 2
- NameError on otherwise un-referenced block arg in failing example HOT 1
- Race Condition with "reentry"
- conflicts with minitest in Rails 4 and rspec_rails HOT 6
- wrong takes over `expect`... unexpectedly HOT 1
- Bump gem version HOT 8
- License missing from gemspec
- Rails 4.1/Rspec-rails 2.99 broken HOT 1
- Fails to handle Ranges
- Add missing tags
- Doesn't produce the expected output HOT 1
- NameError when trying to debug in RubyMine
- FEATURE: Ruby 2.6/RubyVM::AST Upgrade HOT 1
- uninitialized constant Wrong::Date
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wrong.