Sha256: 70a9026cc679c719c18b563f5f5f3b83f63a6459cf9db7df45c21b5edf4a465c
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
require 'helper' class TestComment < Test::Unit::TestCase def setup @client = Whatser::Client.new @poi_id = 1 @media_id = 1 @comment = Whatser::Comment.new(:poi_id => @poi_id, :body => 'test') end def test_poi_list assert @client.comments.poi(@poi_id, :page => 1).is_a?(Whatser::Response) end def test_media_list assert @client.comments.media(@media_id, :page => 1).is_a?(Whatser::Response) end def test_create assert @client.comments.create('poi', @poi_id, 'testing.').is_a?(Whatser::Response) end def test_delete assert @client.comments.delete(@poi_id).is_a?(Whatser::Response) assert @comment.delete.is_a?(Whatser::Response) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whatser-0.4.0 | test/test_comment.rb |