Sha256: 4bddadd26ad0afe93db8fe6bd0f2984bda4c75c2dc988a71bdfcbbb99a173e1b

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

require 'rest-core'

require 'webmock'
require 'muack'
require 'bacon'

# for testing lighten (serialization)
require 'yaml'

WebMock.disable_net_connect!(:allow_localhost => true)
Bacon.summary_on_exit
Bacon::Context.send(:include, Muack::API, WebMock::API)

module Kernel
  def eq? rhs
    self == rhs
  end

  def lt? rhs
    self < rhs
  end

  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

4 entries across 4 versions & 1 rubygems

Version Path
rest-core-3.2.0 lib/rest-core/test.rb
rest-core-3.1.1 lib/rest-core/test.rb
rest-core-3.1.0 lib/rest-core/test.rb
rest-core-3.0.0 lib/rest-core/test.rb