Sha256: 2b5f95303d194948482ab252989bc61ca0cbbbda5504437a38afb71d4cb43860
Contents?: true
Size: 866 Bytes
Versions: 2
Compression:
Stored size: 866 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 Configurable.logger.should be_a(Logger) Configurable.should log_requests Configurable.should log_errors Configurable.should_not log_responses end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vkontakte_api-1.0.rc2 | spec/vkontakte_api/configuration_spec.rb |
vkontakte_api-1.0.rc | spec/vkontakte_api/configuration_spec.rb |