Sha256: d1b103e938af94e20553be845c98d247688471767185240a18ce591de7ba1ba1

Contents?: true

Size: 762 Bytes

Versions: 7

Compression:

Stored size: 762 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Vkontakte do
  it "should be valid" do
    Vkontakte.should be_a(Module)
  end
  
  context "setup" do
    before(:each) do
      Vkontakte.setup do |config|
        config.app_id = 1234567
        config.app_secret = "supersecretkey"
        config.format = :xml
        config.debug = false
        config.logger = nil
      end
    end
    
    it "should set config options" do
      Vkontakte.config.app_id.should == 1234567
      Vkontakte.config.app_secret.should == 'supersecretkey'
      Vkontakte.config.format.should == :xml
    end
    
    it "should raise error on not exists option" do
      lambda {
        Vkontakte.config.some_param
      }.should raise_error(StandardError)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vkontakte-0.0.9 spec/vkontakte_spec.rb
vkontakte-0.0.8 spec/vkontakte_spec.rb
vkontakte-0.0.7 spec/vkontakte_spec.rb
vkontakte-0.0.6 spec/vkontakte_spec.rb
vkontakte-0.0.5 spec/vkontakte_spec.rb
vkontakte-0.0.4 spec/vkontakte_spec.rb
vkontakte-0.0.3 spec/vkontakte_spec.rb