Created
August 29, 2011 22:42
-
-
Save graylikeme/1179608 to your computer and use it in GitHub Desktop.
Useless tests blog post
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
| def test_add_items | |
| assert_equal 0, @list.items.size | |
| @list.add_item(@item) | |
| assert_equal 1, @list.items.size | |
| end |
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
| def setup | |
| @item = Boom::Item.new('github','https://github.com') | |
| end | |
| def test_name | |
| assert_equal 'github', @item.name | |
| end | |
| def test_value | |
| assert_equal 'https://github.com', @item.value | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment