Sha256: 342b3fdbf73e6dbf0ecce5229708a316b65e0c6c2c051a983279d1d5e82a09cf

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

require "spec_helper"

describe Vkontakte::App::User do
  it "should be valid" do
    Vkontakte::App::User.should be_a(Module)
  end
  
  context "fetch" do
    before(:each) do
      @user = Vkontakte::App::User.new('uid', :access_token => 'ACCESS_TOKEN')
    end
    
    it "should load user profile" do
      FakeWeb.register_uri(:get, 
        "https://api.vkontakte.ru/method/users.get?access_token=ACCESS_TOKEN&uids=uid", 
        :body => '{"response":[{"uid":2592709, "last_name":"Галета", "first_name":"Павел"}]}')
        
      @user.fetch.should_not be_blank
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vkontakte-0.0.2 spec/apps/user_spec.rb