Sha256: 956baa52abce027d10ba09e5f2d5d136508275b5e0e2f86396e54aee85587198

Contents?: true

Size: 398 Bytes

Versions: 8

Compression:

Stored size: 398 Bytes

Contents

require 'helper'

class TestCity < Test::Unit::TestCase
  def setup
    @client = Whatser::Client.new(:oauth_token => '1234')
    @user_id = 1
  end
  
  def test_my_cities
    assert @client.cities.mine( :page => 1, :per_page => 10 ).is_a?(Whatser::Response)
  end
  
  def test_user_cities
    assert @client.cities.user( @user_id, :page => 1, :per_page => 10 ).is_a?(Whatser::Response)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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