Skip to content

Instantly share code, notes, and snippets.

@graylikeme
Created August 29, 2011 22:42
Show Gist options
  • Save graylikeme/1179608 to your computer and use it in GitHub Desktop.
Save graylikeme/1179608 to your computer and use it in GitHub Desktop.
Useless tests blog post
def test_add_items
assert_equal 0, @list.items.size
@list.add_item(@item)
assert_equal 1, @list.items.size
end
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