Project

General

Profile

Actions

バグ #616

closed

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

Added by コスモ 虹川 almost 10 years ago. Updated over 5 years ago.

Status:
終了
Priority:
通常
Assignee:
-
Target version:
プラグイン名:
ブランチ:
クラッシュする:

Description

具体的にはこの部分

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の指す位置はアカウントごとに異なっていいはずです。


Files

0001-use-environment-variable-in-test.patch (978 Bytes) 0001-use-environment-variable-in-test.patch コスモ 虹川, 2013-10-13 01:00
mikutter_run_test.rtf (12.2 KB) mikutter_run_test.rtf コスモ 虹川, 2014-07-26 14:59
Actions

Also available in: Atom PDF