Sha256: 224a326b47c1f33e0727173ab87cf1bfc16a443e99768c9073bdf4d2e2297273

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

require 'debugger'
require 'rspec'
require 'rspec/core'
require 'rspec/mocks'
require 'upload'
require File.expand_path('../../lib/fastdfs-client', __FILE__)
require File.expand_path('../test_config', __FILE__)
require File.expand_path('../mock_tcp_socket', __FILE__)

FC = Fastdfs::Client

RSpec.configure do |config|
  config.before(:each) do 
    TCPSocket.stub(:new) do |h, p|
      MockTCPSocket.new(h, p)
    end
  end 
  config.mock_with :rspec do |c|
    c.syntax = [:should, :expect]
  end
end
  

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fastdfs-client-1.4.4 spec/spec_helper.rb
fastdfs-client-1.4.3 spec/spec_helper.rb
fastdfs-client-1.4.1 spec/spec_helper.rb
fastdfs-client-1.4.0 spec/spec_helper.rb