Sha256: ed3fcbe01d1531fc3e01b5adbd66b4425f8d956c283a93e14ad36fca42c86182

Contents?: true

Size: 736 Bytes

Versions: 7

Compression:

Stored size: 736 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_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

7 entries across 7 versions & 1 rubygems

Version Path
whatser-0.6.0 test/test_follow.rb
whatser-0.5.0 test/test_follow.rb
whatser-0.4.0 test/test_follow.rb
whatser-0.3.2 test/test_follow.rb
whatser-0.3.1 test/test_follow.rb
whatser-0.3.0 test/test_follow.rb
whatser-0.2.0 test/test_follow.rb