Sha256: f21eff77cb74f501b90da5e8f4f48e5ee1b082853fc19f73b51d63e3b1a9a28d
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
require 'spec_helper' class Configurable extend VkontakteApi::Configuration end describe VkontakteApi::Configuration do describe "#configure" do it "yields self" do expect(Configurable).to receive(:some_method) Configurable.configure do |config| config.some_method end end it "returns self" do expect(Configurable.configure).to eq(Configurable) end end describe "#reset" do it "sets all options to their default values" do Configurable.reset expect(Configurable.app_id).to be_nil expect(Configurable.app_secret).to be_nil expect(Configurable.adapter).to eq(VkontakteApi::Configuration::DEFAULT_ADAPTER) expect(Configurable.http_verb).to eq(VkontakteApi::Configuration::DEFAULT_HTTP_VERB) expect(Configurable.faraday_options).to eq(Hash.new) expect(Configurable.logger).to be_a(Logger) expect(Configurable).to log_requests expect(Configurable).to log_errors expect(Configurable).not_to log_responses expect(Configurable.api_version).to be_nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems