Sha256: db6f920442c0ae00672e604bb08ba3747569507bd9ef88b839092b269e496adb
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
# encoding: utf-8 require 'spec_helper' describe Github::Configuration do let(:instance) { described_class.new } subject { instance } its(:adapter) { should == :net_http } its(:endpoint) { should == 'https://api.github.com' } its(:site) { should == 'https://github.com' } its(:user_agent) { should =~ /Github API Ruby Gem/ } its(:oauth_token) { should be_nil } its(:auto_pagination) { should be_false } its(:ssl) { should_not be_empty } its(:ssl) { should be_a Hash } 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 be_nil } its(:password) { should be_nil } its(:basic_auth) { should be_nil } describe ".call" do before { subject.adapter = :net_http } after { subject.adapter = :net_http } it { should respond_to :call } it "evaluates block" do block = Proc.new { |config| config.adapter= :http } subject.call(&block) expect(subject.adapter).to eql(:http) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_api-0.12.3 | spec/github/configuration_spec.rb |
github_api-0.12.2 | spec/github/configuration_spec.rb |
github_api-0.12.1 | spec/github/configuration_spec.rb |