Sha256: 78455643c71d2f2737f16e02393b116900dedb8d15d257c3fe97e1859e82a6df

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

require 'minitest/autorun'

def pending
  begin
    yield
    fail "OMG pending test passed."
  rescue MiniTest::Assertion
    skip "Still pending"
  end
end

class String
  def strip_heredoc
    indent = scan(/^[ \t]*(?=\S)/).min.send(:size) || 0
    gsub(/^[ \t]{#{indent}}/, '')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
json-merge_patch-0.1.0 test/test_helper.rb
json-merge_patch-0.0.1 test/test_helper.rb