Sha256: 8caef04983c845f4fdd5e8fa245fbdb35c6f5ea65c5b27746b99be015dd45167
Contents?: true
Size: 914 Bytes
Versions: 3
Compression:
Stored size: 914 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.faraday_options.should == {} 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vkontakte_api-1.0.1 | spec/vkontakte_api/configuration_spec.rb |
vkontakte_api-1.0 | spec/vkontakte_api/configuration_spec.rb |
vkontakte_api-1.0.rc3 | spec/vkontakte_api/configuration_spec.rb |