spec/api/secure_spec.rb in vkontakte-0.0.6 vs spec/api/secure_spec.rb in vkontakte-0.0.7
- old
+ new
@@ -1,6 +1,5 @@
-# encoding: utf-8
require "spec_helper"
describe Vkontakte::Api::Secure do
it "should be valid" do
Vkontakte::Api::Secure.should be_a(Module)
@@ -13,10 +12,10 @@
FakeWeb.register_uri(:get,
"https://oauth.vk.com/access_token?grant_type=client_credentials&client_id=#{Vkontakte.config.app_id}&client_secret=#{Vkontakte.config.app_secret}",
:body => '{"access_token":"#{@token}"}')
@app = Vkontakte::App::Secure.new
- @options = @app.secure.default_options.merge(:access_token => @token)
+ @options = @app.secure.default_options.merge(:access_token => @token, :v => '5.24')
end
it "should call sendNotification" do
p = @options.merge(:uids => 81202312, :message => "test")