Sha256: 10c267d465b0967668abcec3d8d45405c4313e011c48e23c25f1d298cce1dc2f

Contents?: true

Size: 432 Bytes

Versions: 12

Compression:

Stored size: 432 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)

class Pork::Executor
  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

12 entries across 12 versions & 1 rubygems

Version Path
rest-core-3.5.92 lib/rest-core/test.rb
rest-core-3.5.91 lib/rest-core/test.rb
rest-core-3.5.9 lib/rest-core/test.rb
rest-core-3.5.8 lib/rest-core/test.rb
rest-core-3.5.7 lib/rest-core/test.rb
rest-core-3.5.6 lib/rest-core/test.rb
rest-core-3.5.5 lib/rest-core/test.rb
rest-core-3.5.4 lib/rest-core/test.rb
rest-core-3.5.3 lib/rest-core/test.rb
rest-core-3.5.2 lib/rest-core/test.rb
rest-core-3.5.1 lib/rest-core/test.rb
rest-core-3.5.0 lib/rest-core/test.rb