Sha256: 7ae9e804518705dcc2be1b82c44329d43ae69a71a71a38a5afc7b9a1afb234d4
Contents?: true
Size: 516 Bytes
Versions: 14
Compression:
Stored size: 516 Bytes
Contents
require File.join(File.dirname(__FILE__), 'spec_helper') describe RestClient do before do module RestClient class Request def self.execute(options = {}) if options[:verify_ssl] == OpenSSL::SSL::VERIFY_PEER :secure else :insecure end end end end end it 'should support SSL' do [:get, :post, :put, :delete].each do |method| RestClient.send(method, 'https://example.com', {}).should == :secure end end end
Version data entries
14 entries across 14 versions & 1 rubygems