spec/configuration_spec.rb in shutl_resource-1.7.2 vs spec/configuration_spec.rb in shutl_resource-1.7.3

- old
+ new

@@ -1,18 +1,28 @@ 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 - #set it back to not corrupt other tests + it "allows for configuration of the proxy uri" do Shutl::Resource.configure do |config| - config.base_uri = nil + config.proxy_uri = 'proxy uri' end + + Shutl::Resource.proxy_uri.should == 'proxy uri' end end end