Sha256: 92a667a995a10fea81e96175421645b87fe1813c1cbbc8a51cf1e679976f19ff
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' describe Vkontakte::Api::Wall do it 'should be valid' do Vkontakte::Api::Wall.should be_a(Module) end context 'user' do before(:each) do @token = '3a3d250e705051b03ed479343c3ec2833783eea3eea29860182716ed1d40319' @user = Vkontakte::App::User.new("2592709", :access_token => @token) end it 'should return user wall posts' do FakeWeb.register_uri(:get, "https://api.vk.com/method/wall.get?v=5.24&owner_id=2592709&access_token=#{@token}", :body => '{"response":{"count":2,"items":[1,2]}}') @user.wall.get(:owner_id => 2592709).should eq ({"count" => 2, "items" => [1, 2]}) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vkontakte-0.0.9 | spec/api/wall_spec.rb |
vkontakte-0.0.8 | spec/api/wall_spec.rb |
vkontakte-0.0.7 | spec/api/wall_spec.rb |