Sha256: b8f27530e74c46d55393ef3792b64ed297d75fe9bcc1f99e76fa286c2ea7adfa
Contents?: true
Size: 808 Bytes
Versions: 3
Compression:
Stored size: 808 Bytes
Contents
require File.expand_path('../../../lib/heracles-wrapper/config', __FILE__) require 'minitest/autorun' describe 'Heracles::Wrapper::Config' do subject { Heracles::Wrapper::Config.new { |c| c.api_key = expected_api_key } } let(:expected_api_key) { '12345678901234567890123456789012'} it 'should initialize with a block' do subject.api_key.must_equal expected_api_key end it 'should have heracles base url' do subject.heracles_base_url.must_equal Heracles::Wrapper::HERACLES_BASE_URL end it 'should allow heracles_base_url to be overwritten' do expected_url = 'http://google.com' subject.heracles_base_url.must_equal Heracles::Wrapper::HERACLES_BASE_URL subject.heracles_base_url = expected_url subject.heracles_base_url.must_equal expected_url end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
heracles-wrapper-0.0.3 | spec/heracles-wrapper/config_spec.rb |
heracles-wrapper-0.0.2 | spec/heracles-wrapper/config_spec.rb |
heracles-wrapper-0.0.1 | spec/heracles-wrapper/config_spec.rb |