プロジェクト

全般

プロフィール

バグ #616

完了

mikutterのweb image loaderのtestが環境依存になっている

コスモ 虹川 さんが10年以上前に追加. 約6年前に更新.

ステータス:
終了
優先度:
通常
担当者:
-
対象バージョン:
プラグイン名:
ブランチ:
クラッシュする:

説明

具体的にはこの部分

diff --git a/test/core/test_web_image_loader.rb b/test/core/test_web_image_loade
r.rb
index fbdca34..f6c4857 100644
--- a/test/core/test_web_image_loader.rb
+++ b/test/core/test_web_image_loader.rb
@@ -150,7 +150,7 @@ class TC_GtkWebImageLoader < Test::Unit::TestCase
       WebMock.stub_request(:get, url).to_return(File.open(ICON_TEST){ |io| io.r
ead })
       localpath = Gdk::WebImageLoader.local_path(url)
     }.join
-    assert_equal("/home/toshi/.mikutter/tmp/e9183b9265dcf0728fceceb07444e8c1.pn
g.png", localpath)
+    assert_equal("#{ENV["HOME"]}/.mikutter/tmp/e9183b9265dcf0728fceceb07444e8c1
.png.png", localpath)
   end

   must "is local path" do

~/.mikutterの指す位置はアカウントごとに異なっていいはずです。


ファイル

他の形式にエクスポート: Atom PDF