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

Version Path
fb_graph-1.6.5 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.6.4 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.6.3 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.6.2 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.6.1 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.6.0 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.5.5 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.5.4 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.5.3 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.5.2 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.5.1 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.5.0 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.4.1 spec/restclient_with_ssl_support_spec.rb
fb_graph-1.4.0 spec/restclient_with_ssl_support_spec.rb