This is a companion discussion topic for the original entry at https://thoughtbot.com/upcase/videos/ping-pong-paired-programing
For a situation where you have multiple months would you go and write another feature spec? A full feature spec feels a little heavy weight for the difference between the existing spec. Would that be a situation where you would pull the logic out into a helper and then test the functionality in an isolated unit there. I suppose another alternative would be to simply trust the pluralize implementation but that doesnât protect you against removing the pluralize call later if you did refactoring to the view.
I guess the more general question here is, how granular should you make the integration tests. One one had they are slow so having less of them is better but on the other hand you want to get some confidence that certain permutations for the view are tested and protected against change.
Great episode. Very instructive.
I wonder when you are âdoing mathâ if you should have a single example with many expectations. It seems like it would reduce the amount of signal to boilerplate. I am thinking something along the lines of this: Multiple expect invocations inside a single test example ¡ GitHub
The problem that I see with this is that if there is a test failure it is not immediately obvious where the failure occurred. Perhaps it could be solved by a custom matcher or something.
@benorenstein Great video, thanks for posting this. I was curious what the tool is you were using for your autocomplete (variable names and method names) within vim. I am very new to vim (thanks to upcase) and even looked through your dotfiles repo but wasnât sure what you might be using. Also curious about some of the other tools you used to be so efficient in vim, like auto closing brackets and parenthesis. Thanks!
Hey!
For snippets Iâm using snipmate.vim. Itâs fine. Others are fine too.
I actually donât use anything to autoclose brackets and parens, but I do use endwise.vim to add end
keywords in Ruby.
I donât intent to be mean, but itâs such a relief to see two giants as you guys struggling to do time moth â I thought I was the only one having such a hard time with thatâŚ