Skip to content
Create a gist now

Instantly share code, notes, and snippets.

This is NOT how you use RSpec
describe Foo do
before(:each) do
setup
end
def setup
@foo = Foo.new
end
# shitty specs with an IVAR!!!
# ...
end
@geeksam
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
Owner
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
Something went wrong with that request. Please try again.