@alindeman Which in turn encourages you to have small, highly-focused tests.
RSpec idea: Make conditionals into contexts. For example, `it 'does X when Y happens'` becomes `context 'Y' { it 'does X' }`
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@JakeGoulding when there's only 1, I still tend to stick with `it "does X when Y"`. -
@myronmarston I think splitting it into two encourages me to make X and Y more verbose/explicit. Otherwise I'm cramming 2 ideas on 1 line.
End of conversation
New conversation -
-
-
@JakeGoulding that's generally how I do it when there are multiple interesting behaviors to specify for a given conditional.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.