Sha256: fe6297f75166097ebb5fdd025df7a0c39d07f4389de5283934d118a41a9fc279

Contents?: true

Size: 343 Bytes

Versions: 2

Compression:

Stored size: 343 Bytes

Contents

require 'minitest/unit'

Richard::CurlReply.class_eval do
  include MiniTest::Assertions
  
  def must_match(expected)
    assert(self.matches?(expected), "Expected <#{self}> to match <#{expected}>")
  end

  def must_not_match(expected)
    assert(false === self.matches?(expected), "Expected <#{self}> not to match <#{expected}>")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
richard_iii-0.1.1 test/support/extensions.rb
richard_iii-0.1.0 test/support/extensions.rb