Sha256: 129004ea816a76ba809c4824c25674185bff658f3997bb46cd336a0da641cf2f
Contents?: true
Size: 858 Bytes
Versions: 1
Compression:
Stored size: 858 Bytes
Contents
# -*- encoding: utf-8 -*- $: << File.join(File.dirname(__FILE__), "/../lib") require 'open_uri_redirections' require 'fakeweb' FakeWeb.allow_net_connect = false $samples_dir = File.dirname(__FILE__) + '/samples' ####################### # Faked web responses # ####################### FakeWeb.register_uri(:get, "http://safe.com/", :response => open("#{$samples_dir}/http_safe.response").read) FakeWeb.register_uri(:get, "https://safe.com/", :response => open("#{$samples_dir}/https_safe.response").read) FakeWeb.register_uri(:get, "http://safe2.com/", :response => open("#{$samples_dir}/http_safe2.response").read) FakeWeb.register_uri(:get, "https://unsafe.com/", :response => open("#{$samples_dir}/https_unsafe.response").read) FakeWeb.register_uri(:get, "http://unsafe.com/", :response => open("#{$samples_dir}/http_unsafe.response").read)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
open_uri_redirections-0.2.1 | spec/spec_helper.rb |