Changeset 29299
- Timestamp:
- 01/30/09 18:54:33 (4 years ago)
- Files:
-
- 1 modified
-
lang/ruby/hatena/api/haiku_test.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/hatena/api/haiku_test.rb
r24821 r29299 11 11 @ua_name = Hatena::API::Haiku::UserAgent::NAME 12 12 @ua_version = Hatena::API::Haiku::UserAgent::VERSION 13 @entry_id = '9236558907253381500' 13 14 14 15 @haiku = Hatena::API::Haiku.new(@username, @password) … … 51 52 52 53 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) 54 55 end 55 56 … … 68 69 def test_post_entry_by_profile_with_reply 69 70 entry = post_entry( 70 :reply_id => '9236561822117175452'71 :reply_id => @entry_id 71 72 ) 72 73 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 74 75 @haiku.remove_entry(:entry_id => entry['id']) 75 76 end … … 85 86 86 87 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) 89 90 end 90 91
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)