lib/soaspec/exchange_handlers/rest_handler.rb in soaspec-0.0.67 vs lib/soaspec/exchange_handlers/rest_handler.rb in soaspec-0.0.68
- old
+ new
@@ -140,10 +140,10 @@
set_remove_key(options, :default_hash)
merged_options = rest_resource_options
merged_options[:headers] ||= {}
merged_options[:headers].merge! parse_headers
merged_options.merge!(options)
- @resource = RestClient::Resource.new(base_url_value, merged_options) # @resource[url_extension].get
+ @resource = RestClient::Resource.new(ERB.new(base_url_value).result(binding), merged_options)
end
# Convert snakecase to PascalCase
def convert_to_pascal_case(key)
return key if /[[:upper:]]/ =~ key[0] # If first character already capital, don't do conversion
\ No newline at end of file