Actions
バグ #616
closedmikutterのweb image loaderのtestが環境依存になっている
プラグイン名:
ブランチ:
クラッシュする:
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
Updated by toshi_a 初音 over 9 years ago
- Tracker changed from 環境対応 to バグ
仰るとおりです。ただし、mikutterには.mikutterの位置を指定する機能が有りますが、テストではこれを指定する手段がありません。なので、提案されたパッチとほぼ同等の変更になると思います。
Updated by toshi_a 初音 over 8 years ago
- Status changed from 新規 to 様子見
- プラグイン名 deleted (
test_image_loader.rb)
遅くなりましたが対応しました。念の為、近いうちに他の環境で試してみてうまくいけば対応完了とします。
Updated by コスモ 虹川 over 8 years ago
- File mikutter_run_test.rtf mikutter_run_test.rtf added
こちらの環境でテストが失敗しない事を確認しました。
問題なさそうです。
OSX Marvericks 10.9.4
ruby 2.1.2p95
mikutter (hotfix-3.0 latest) rev. 4720482e05f119a90389fac4ada43ebbabc551e2
Actions