Sha256: 9c7b56edcacaf7be0bbe5bc976d454d65f130e64dea03431c3e5e0649b1d9c02

Contents?: true

Size: 667 Bytes

Versions: 3

Compression:

Stored size: 667 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'

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

3 entries across 3 versions & 1 rubygems

Version Path
ruby-fs-stack-0.2.1 spec/spec_helper.rb
ruby-fs-stack-0.2.0 spec/spec_helper.rb
ruby-fs-stack-0.1.7 spec/spec_helper.rb