Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
This is NOT how you use RSpec
describe Foo do
before(:each) do
def setup
@foo =
# shitty specs with an IVAR!!!
# ...

geeksam commented Feb 21, 2012

If using ivars in tests is shitty, then... uh... I guess ALL MY TESTS EVER suck. Oh, except maybe the half-dozen or so I wrote since I noticed that MiniTest has #let.


jc00ke commented Feb 21, 2012

Yep, all_sams_tests - sams_tests_with_let = le_suck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment