Sha256: fd4b71b742410298adb87654cbe4dd04f8595131ef969786e1600ce1d91deb32
Contents?: true
Size: 941 Bytes
Versions: 9
Compression:
Stored size: 941 Bytes
Contents
require 'spec_helper' describe GnipApi::Configuration do describe 'OUTPUT_FORMATS' do it 'includes :json' do expect(GnipApi::Configuration::OUTPUT_FORMATS.include?(:json)).to eq(true) end it 'includes :activity' do expect(GnipApi::Configuration::OUTPUT_FORMATS.include?(:activity)).to eq(true) end it 'includes :parsed_json' do expect(GnipApi::Configuration::OUTPUT_FORMATS.include?(:parsed_json)).to eq(true) end end describe '#new' do it 'has the default values' do config = GnipApi::Configuration.new expect(config.user).to eq(nil) expect(config.password).to eq(nil) expect(config.account).to eq(nil) expect(config.adapter_class).to eq(GnipApi::Adapters::HTTPartyAdapter) expect(config.logger).not_to eq(nil) expect(config.source).to eq(nil) expect(config.label).to eq(nil) expect(config.debug).to eq(false) end end end
Version data entries
9 entries across 9 versions & 1 rubygems