Created
November 14, 2013 17:06
-
-
Save bhardin/7470435 to your computer and use it in GitHub Desktop.
Writing RSpec Tests
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
Tests should test valid input first and then edge cases. | |
```ruby | |
describe 'when this happens' do | |
it "does good" do | |
end | |
end | |
describe 'when this other thing happens' do | |
it 'does something else' do | |
end | |
end | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment