Created
February 20, 2012 23:05
-
-
Save jc00ke/1872159 to your computer and use it in GitHub Desktop.
This is NOT how you use RSpec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe Foo do | |
before(:each) do | |
setup | |
end | |
def setup | |
@foo = Foo.new | |
end | |
# shitty specs with an IVAR!!! | |
# ... | |
end |
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
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.