test/unit/test_item.rb in dropcaster-0.0.1 vs test/unit/test_item.rb in dropcaster-0.0.2
- old
+ new
@@ -8,10 +8,10 @@
def test_basics
assert_in_delta(3, @item.duration, 0.005)
assert_equal(58119, @item.file_size)
assert_equal('77bf84447c0f69ce4a33a18b0ae1e030b82010de', @item.uuid)
assert_equal(1317470900, @item.pub_date.to_i)
- assert_equal(Pathname.new('../../fixtures/iTunes.mp3'), Pathname.new(@item.file_name).relative_path_from(Pathname.new(__FILE__)))
+ assert_equal('test/fixtures/iTunes.mp3', @item.file_name)
end
def test_tag
assert_equal('iTunes Artist', @item.tag.artist)
assert_equal('iTunes Genre', @item.tag.genre_s)