Sha256: 7100a003082c33abe2c7ca4b22a4a75855907a6ce5c5515e5426b4170ffe3a98

Contents?: true

Size: 852 Bytes

Versions: 1

Compression:

Stored size: 852 Bytes

Contents

require 'helper'

class TestFollow < Test::Unit::TestCase
  def setup
    @client = Whatser::Client.new
    @user_id = 1
    @follow = Whatser::Follow.new(:id => @user_id)
  end
 
  def test_list
    assert @client.follows.list(:page => 1).is_a?(Whatser::Response)
  end
  
  def test_followers
    assert @client.follows.followers(@user_id, :page => 1).is_a?(Whatser::Response)
  end  
  
  def test_suggested
    assert @client.follows.suggested(:page => 1).is_a?(Whatser::Response)
  end  

  def test_create
    assert @client.follows.create(@user_id).is_a?(Whatser::Response)
  end

  def test_delete
    assert @client.follows.delete(@user_id).is_a?(Whatser::Response)
  end

  def test_ignore
    assert @client.follows.ignore(@user_id).is_a?(Whatser::Response)
  end  

  def test_save
    assert @follow.save.is_a?(Whatser::Response)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whatser-0.6.1 test/test_follow.rb