Changeset 29299

Show
Ignore:
Timestamp:
01/30/09 18:54:33 (4 years ago)
Author:
trashsuite
Message:

* テスト用のエントリが消失していた為,別のエントリ ID を設定した

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/hatena/api/haiku_test.rb

    r24821 r29299  
    1111    @ua_name    = Hatena::API::Haiku::UserAgent::NAME 
    1212    @ua_version = Hatena::API::Haiku::UserAgent::VERSION 
     13    @entry_id   = '9236558907253381500' 
    1314 
    1415    @haiku = Hatena::API::Haiku.new(@username, @password) 
     
    5152 
    5253  def test_show_entry 
    53     assert_instance_of Hash, @haiku.show_entry(:entry_id => '9236561822117175452') 
     54    assert_instance_of Hash, @haiku.show_entry(:entry_id => @entry_id) 
    5455  end 
    5556 
     
    6869  def test_post_entry_by_profile_with_reply 
    6970    entry = post_entry( 
    70       :reply_id => '9236561822117175452' 
     71      :reply_id => @entry_id 
    7172    ) 
    7273    assert_instance_of Hash, entry 
    73     assert_equal entry['in_reply_to_status_id'], '9236561822117175452' 
     74    assert_equal entry['in_reply_to_status_id'], @entry_id 
    7475    @haiku.remove_entry(:entry_id => entry['id']) 
    7576  end 
     
    8586 
    8687  def test_add_and_remove_star 
    87     assert_instance_of Hash, @haiku.add_star(:entry_id => '9236561822117175452') 
    88     assert_instance_of Hash, @haiku.remove_star(:entry_id => '9236561822117175452') 
     88    assert_instance_of Hash, @haiku.add_star(:entry_id => @entry_id) 
     89    assert_instance_of Hash, @haiku.remove_star(:entry_id => @entry_id) 
    8990  end 
    9091