Sha256: 94fd7c99e8bdec4c350bc9d0cafb81207d95177e69f128243c207e6799c8d936

Contents?: true

Size: 344 Bytes

Versions: 12

Compression:

Stored size: 344 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
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
shutl_resource-0.10.4 spec/configuration_spec.rb
shutl_resource-0.10.3 spec/configuration_spec.rb
shutl_resource-0.10.1 spec/configuration_spec.rb
shutl_resource-0.10.0 spec/configuration_spec.rb
shutl_resource-0.9.4 spec/configuration_spec.rb
shutl_resource-0.9.3 spec/configuration_spec.rb
shutl_resource-0.9.1 spec/configuration_spec.rb
shutl_resource-0.9.0 spec/configuration_spec.rb
shutl_resource-0.8.3 spec/configuration_spec.rb
shutl_resource-0.8.2 spec/configuration_spec.rb
shutl_resource-0.8.1 spec/configuration_spec.rb
shutl_resource-0.8.0 spec/configuration_spec.rb