Sha256: d70fe570c9a7a79154915cba796ed5152a105131d8f6482127e67cd739c14cad
Contents?: true
Size: 597 Bytes
Versions: 4
Compression:
Stored size: 597 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?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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vkontakte-0.0.6 | spec/apps/user_spec.rb |
vkontakte-0.0.5 | spec/apps/user_spec.rb |
vkontakte-0.0.4 | spec/apps/user_spec.rb |
vkontakte-0.0.3 | spec/apps/user_spec.rb |