Sha256: 90c5296ab444295e9398f8d99906d47b3d8e00718ceeffad11e274654925c0e8

Contents?: true

Size: 630 Bytes

Versions: 8

Compression:

Stored size: 630 Bytes

Contents

require 'spec_helper'

describe Shutl::Resource do
  after do
    Shutl::Resource.configure do |config|
      config.base_uri  = nil
      config.proxy_uri = nil
    end
  end

  describe '#configure' do
    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'
    end

    it "allows for configuration of the proxy uri" do
      Shutl::Resource.configure do |config|
        config.proxy_uri = 'proxy uri'
      end

      Shutl::Resource.proxy_uri.should == 'proxy uri'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shutl_resource-2.0.2 spec/configuration_spec.rb
shutl_resource-2.0.1 spec/configuration_spec.rb
shutl_resource-2.0.0 spec/configuration_spec.rb
shutl_resource-1.9.1 spec/configuration_spec.rb
shutl_resource-1.9.0 spec/configuration_spec.rb
shutl_resource-1.8.2 spec/configuration_spec.rb
shutl_resource-1.8.0 spec/configuration_spec.rb
shutl_resource-1.7.3 spec/configuration_spec.rb