The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
This file contains hidden or 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
| require 'rest-client' | |
| RestClient.get(url, headers={}) | |
| RestClient.post(url, payload, headers={}) |
This file contains hidden or 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
| # RR | |
| # RR (Double Ruby) is a test double framework that features a rich selection of double techniques and a terse syntax. | |
| # | |
| # | |
| # one of the goal of RR is to make doubles more scannable. | |
| # accomplished by making the double declartion look as much as the actual method invocation as possible | |
| flexmock(User).should_receive(:find).with('42').and_return(jane) # Flexmock | |
| User.should_receive(:find).with('42').and_return(jane) # Rspec | |
| User.expects(:find).with('42').returns {jane} # Mocha | |
| User.should_receive(:find).with('42') {jane} # Rspec using return value blocks |