Sha256: 219d17f73c85917110570c98a04284ccb09fbe208325ebb711176b44108c8124

Contents?: true

Size: 608 Bytes

Versions: 1

Compression:

Stored size: 608 Bytes

Contents

# encoding: utf-8
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.vk.com/method/users.get?v=5.24&access_token=ACCESS_TOKEN&user_ids=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.9 spec/apps/user_spec.rb