Changeset 5070 for platform/tdiary/test

Show
Ignore:
Timestamp:
01/20/08 17:00:13 (10 months ago)
Author:
hsbt
Message:

platform/tdiary/test/my_hotentry_test.rb: changed file encoding to UTF-8

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/test/my_hotentry_test.rb

    r3281 r5070  
    1111class MyHotEntryTest < Test::Unit::TestCase 
    1212  def setup 
    13     # @cache_path �ϡ֥ե�����-�ץ����� 
     13    # @cache_path は「ファイル名-プロセス番号」 
    1414    @cache_path = File.join(Dir.tmpdir, "#{__FILE__}-#{$$}") 
    1515    Dir.mkdir(@cache_path) 
     
    2222 
    2323  def test_update 
    24     # �͵����������   base_url = 'http://d.hatena.ne.jp/' 
     24    # 人気の日記一覧を取得する 
     25    base_url = 'http://d.hatena.ne.jp/' 
    2526    hotentry = MyHotEntry.new(@dbfile) 
    2627    hotentry.update(base_url) 
    27     # �������������뤬���������뤳��    assert(File.file?(@dbfile)) 
    28     # �͵������Ǥ��Ƥ��뤳��    entries = hotentry.entries 
     28    # キャッシュファイルが生成されていること 
     29    assert(File.file?(@dbfile)) 
     30    # 人気の日記が取得できていること 
     31    entries = hotentry.entries 
    2932    assert(entries.size > 0) 
    3033    entries.each do |entry| 
    31       assert(entry[:url].include?(base_url), 'base_url �ǻ�ꤷ��URL���ޤޤ����뤳��) 
     34      assert(entry[:url].include?(base_url), 'base_url で指定したURLが含まれていること') 
    3235      assert(entry[:title].size > 0) 
    3336    end 
    3437  end 
    3538 
    36   # ���������Ƥ⥭�����奵������������ʤ�������  def test_double_update 
     39  # 何度も取得してもキャッシュサイズが大きくならないこと 
     40  def test_double_update 
    3741    base_url = 'http://d.hatena.ne.jp/' 
    3842    hotentry = MyHotEntry.new(@dbfile) 
     
    4650  end 
    4751 
    48   # ����������ϥ����������ꥢ���ʤ� 
     52  # 取得結果が空の場合はキャッシュをクリアしない 
    4953  def test_update_noentry 
    5054    exist_url = 'http://d.hatena.ne.jp/'