spec/api/likes_spec.rb in vkontakte-0.0.6 vs spec/api/likes_spec.rb in vkontakte-0.0.7
- old
+ new
@@ -1,6 +1,5 @@
-# encoding: utf-8
require 'spec_helper'
describe Vkontakte::Api::Likes do
it 'should be valid' do
Vkontakte::Api::Likes.should be_a(Module)
@@ -13,10 +12,10 @@
@iframe.auth = {'access_token' => @token}
end
it 'should return user, liked this page' do
FakeWeb.register_uri(:get,
- "https://api.vk.com/method/likes.getList?type=sitepage&page_url=http%3A%2F%2Fvk.com&owner_id=1&access_token=#{@token}",
+ "https://api.vk.com/method/likes.getList?v=5.24&type=sitepage&page_url=http%3A%2F%2Fvk.com&owner_id=1&access_token=#{@token}",
:body => '{"response":{"count":2,"users":[1,2]}}')
@iframe.likes.getList(:type => 'sitepage', :page_url => 'http://vk.com', :owner_id => 1).should eq ({"count" => 2, "users" => [1, 2]})
end
end
\ No newline at end of file