Sha256: e617e4cdbea5271ded501f8939db70532820b319ae33c8784bbc61753e29e375
Contents?: true
Size: 693 Bytes
Versions: 3
Compression:
Stored size: 693 Bytes
Contents
require 'spec_helper' class Configurable extend VkontakteApi::Configuration end describe VkontakteApi::Configuration do describe "#configure" do it "yields self" do Configurable.should_receive(:some_method) Configurable.configure do |config| config.some_method end end it "returns self" do Configurable.configure.should == Configurable end end describe "#reset" do it "sets all options to their default values" do Configurable.reset Configurable.app_id.should be_nil Configurable.app_secret.should be_nil Configurable.adapter.should == VkontakteApi::Configuration::DEFAULT_ADAPTER end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vkontakte_api-0.2.1 | spec/vkontakte_api/configuration_spec.rb |
vkontakte_api-0.2 | spec/vkontakte_api/configuration_spec.rb |
vkontakte_api-0.1 | spec/vkontakte_api/configuration_spec.rb |