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