Sha256: 397391dab2897fc1ce1588ea811834f0bf9e3c7e3eae4a5ba5d7cf9548fd954a
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
require "spec_helper" describe Vkontakte::Api::Profile do it "should be valid" do Vkontakte::Api::Profile.should be_a(Module) end context "params" do before(:each) do @token = '7a1cfdd37a3b72167a3b7216ac7a1347bde7a3b7a3a7216c95a735a210be6d4' @user = Vkontakte::App::User.new('2592709', :access_token => @token) end it "should be call users.get method" do response = '{"response":[{"uid":2592709, "last_name":"Галета", "first_name":"Павел"}]}' FakeWeb.register_uri(:get, "https://api.vkontakte.ru/method/users.get?uids=2592709&access_token=#{@token}", :body => response) @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/api/profile_spec.rb |