Sha256: ffa0e74ed6286a88f8ccaab1a2074f0dbf7ae4cc37e2cd4a7bd51bdaa1dfc297
Contents?: true
Size: 1.35 KB
Versions: 4
Compression:
Stored size: 1.35 KB
Contents
# encoding: utf-8 require 'spec_helper' describe Github::Configuration do let(:klass) { ::Class.new do extend Github::Configuration end } subject { klass } its(:adapter) { should == described_class::DEFAULT_ADAPTER } its(:endpoint) { should == described_class::DEFAULT_ENDPOINT } its(:site) { should == described_class::DEFAULT_SITE } its(:user_agent) { should == described_class::DEFAULT_USER_AGENT } its(:oauth_token) { should be_nil } its(:auto_pagination) { should == described_class::DEFAULT_AUTO_PAGINATION } its(:auto_pagination) { should be_false } its(:ssl) { should == described_class::DEFAULT_SSL } its(:ssl) { should be_a Hash } its(:user_agent) { should == described_class::DEFAULT_USER_AGENT } its(:repo) { should be_nil } its(:user) { should be_nil } its(:org) { should be_nil } its(:connection_options) { should be_a Hash } its(:connection_options) { should be_empty } its(:login) { should == described_class::DEFAULT_LOGIN } its(:password) { should == described_class::DEFAULT_PASSWORD } describe ".configure" do it { should respond_to :configure } described_class.keys.each do |key| it "should set the #{key}" do subject.configure do |config| config.send("#{key}=", key) subject.send(key).should == key end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems