Sha256: f67433a571d0893c80566871715c6dd90689cd9f2437ca57dd3153411c8ed2b3

Contents?: true

Size: 425 Bytes

Versions: 6

Compression:

Stored size: 425 Bytes

Contents

require 'rest-core'

require 'pork/auto'
require 'muack'
require 'webmock'

# for testing lighten (serialization)
require 'yaml'

WebMock.disable_net_connect!(:allow_localhost => true)
Pork::Executor.__send__(:include, Muack::API, WebMock::API)

module Kernel
  def with_img
    f = Tempfile.new(['img', '.jpg'])
    n = File.basename(f.path)
    f.write('a'*10)
    f.rewind
    yield(f, n)
  ensure
    f.close!
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rest-core-3.4.1 lib/rest-core/test.rb
rest-core-3.4.0 lib/rest-core/test.rb
rest-core-3.3.3 lib/rest-core/test.rb
rest-core-3.3.2 lib/rest-core/test.rb
rest-core-3.3.1 lib/rest-core/test.rb
rest-core-3.3.0 lib/rest-core/test.rb