Module: SSLHelpers

Defined in:
lib/data_objects/spec/lib/ssl.rb

Constant Summary collapse

CERTS_DIR =
Pathname(__FILE__).dirname.join('ssl_certs').to_s
CONFIG =
OpenStruct.new

Class Method Summary collapse

Class Method Details

.query(*keys) ⇒ Object



17
18
19
# File 'lib/data_objects/spec/lib/ssl.rb', line 17

def self.query(*keys)
  keys.map { |key| "ssl[#{key}]=#{CGI::escape(CONFIG.send(key))}" }.join('&')
end