Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
logie17 committed Aug 22, 2011
1 parent b0286cb commit b7be0a6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/test_contact_parser.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require File.dirname(__FILE__) + '/test_helper.rb'
require 'twitbomb/contact_parser'

class TestContactParser < Test::Unit::TestCase

def setup
@subject = TwitBomb::ContactParser.new('friends', "./test/.twitbomb")
end

def test_instance
assert_instance_of TwitBomb::ContactParser, @subject
end

def test_attributes
assert_equal @subject.contact_name, 'friends'
assert_equal @subject.contact_location, './test/.twitbomb'
end

def test_parse
@subject.parse
end

end

0 comments on commit b7be0a6

Please sign in to comment.