spec/configuration_spec.rb in shutl_resource-0.10.4 vs spec/configuration_spec.rb in shutl_resource-0.10.5
- old
+ new
@@ -11,7 +11,20 @@
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