Sha256: 3746e33fbfbfcfc2c0eb734ab815a6d3de30215888fcc44ecab490552abc925d

Contents?: true

Size: 424 Bytes

Versions: 29

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'

describe Shutl::Resource do
  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'

      #set it back to not corrupt other tests
      Shutl::Resource.configure do |config|
        config.base_uri = nil
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
shutl_resource-1.7.2 spec/configuration_spec.rb
shutl_resource-1.7.1 spec/configuration_spec.rb
shutl_resource-1.7.0 spec/configuration_spec.rb
shutl_resource-1.6.0 spec/configuration_spec.rb
shutl_resource-1.5.6 spec/configuration_spec.rb
shutl_resource-1.5.5 spec/configuration_spec.rb
shutl_resource-1.5.4 spec/configuration_spec.rb
shutl_resource-1.5.3 spec/configuration_spec.rb
shutl_resource-1.5.2 spec/configuration_spec.rb
shutl_resource-1.5.1 spec/configuration_spec.rb
shutl_resource-1.5.0 spec/configuration_spec.rb
shutl_resource-1.4.2 spec/configuration_spec.rb
shutl_resource-1.4.1 spec/configuration_spec.rb
shutl_resource-1.4.0 spec/configuration_spec.rb
shutl_resource-1.3.6 spec/configuration_spec.rb
shutl_resource-1.3.5 spec/configuration_spec.rb
shutl_resource-1.3.4 spec/configuration_spec.rb
shutl_resource-1.3.3 spec/configuration_spec.rb
shutl_resource-1.3.2 spec/configuration_spec.rb
shutl_resource-1.3.1 spec/configuration_spec.rb