Sha256: 9e03f34300a883ecaf5535620f5badfa603f7341ecdc3c0d0dcb415abcf1a2fa
Contents?: true
Size: 685 Bytes
Versions: 24
Compression:
Stored size: 685 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'ruby-fs-stack' require 'spec' require 'spec/autorun' require 'fakeweb' Spec::Runner.configure do |config| end module HttpCommunicatorHelper def stub_net_objects @request = mock("Net::HTTP::Get|Post") @request.stub!(:[]=) @request.stub!(:body=) @http = mock("Net::HTTP") Net::HTTP.stub!(:new).and_return(@http) Net::HTTP::Get.stub!(:new).and_return(@request) Net::HTTP::Post.stub!(:new).and_return(@request) @http.stub!(:use_ssl=) @http.stub!(:ca_file=) @http.stub!(:verify_mode=) @http.stub!(:start) end end
Version data entries
24 entries across 24 versions & 1 rubygems