Sha256: d62dc000176771804149fe358c944de83f98a3ea35098f1457d31fbfd6b1ddf7
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
require 'spec_helper' describe SocialProfile::People::Vkontakte do it "should be a Module" do SocialProfile::People.should be_a(Module) end context "vkontakte" do before(:each) do @user = SocialProfile::Person.get(:vkontakte, "123456789", "abc") stub_request(:get, "https://api.vk.com/method/users.get?access_token=abc&fields=counters&uids=123456789"). to_return(:status => 200, :body => File.read(SocialProfile.root_path.join('spec/mock_json/vkontakte/friends_count.json'))) end it "should be a vkontakte profile" do @user.should be_a(SocialProfile::People::Vkontakte) end it "should response to friends_count" do @user.friends_count.should > 0 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
social_profile-0.2.1 | spec/people/vkontakte_spec.rb |
social_profile-0.2.0 | spec/people/vkontakte_spec.rb |