added failing test

This commit is contained in:
Kyle Maxwell 2008-12-20 10:24:02 -08:00
parent a73c289b68
commit a52c1f5f9b
1 changed files with 8 additions and 0 deletions

View File

@ -27,4 +27,12 @@ class TestDexterous < Test::Unit::TestCase
@nonexistant_file = File.dirname(__FILE__) + "/../fixtures/yelp.html"
assert_equal({"hi" => "Nick's Crispy Tacos"}, @dex.parse(:file => @nonexistant_file)) rescue nil
end
def test_array_string
@dex = Dexterous.new({"foo" => ["li"]})
out = @dex.parse(:file => @file)
assert_kind_of Hash, out
assert_kind_of Array, out["foo"], out.inspect
assert out["foo"].length > 1
end
end