Sha256: 820b1f84b6f9045b34f14913cd9af0cf418707aaa8c46938eafe84024f0bb6ab
Contents?: true
Size: 681 Bytes
Versions: 3
Compression:
Stored size: 681 Bytes
Contents
require 'spec_helper' describe Shutl::Resource do describe '#configure' do let(:logger) { Shutl::Resource.logger } it 'should configure the logger' do logger = stub('logger') Shutl::Resource.configure do |config| config.logger = logger end Shutl::Resource.logger.should == logger end it "allows for configuration of the base uri" do Shutl::Resource.configure do |config| config.base_uri = 'base uri' end Shutl::Resource.base_uri.should == 'base uri' #set it back to not corrupt other tests Shutl::Resource.configure do |config| config.base_uri = nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shutl_resource-1.0.0 | spec/configuration_spec.rb |
shutl_resource-0.10.6 | spec/configuration_spec.rb |
shutl_resource-0.10.5 | spec/configuration_spec.rb |