Sha256: 63d6ca6e8527c5ab534de949f6f56e36f8fa536acbe5500e516d70204f87e10d

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

module CustomMatchers
  def assert_eql(expected, actual, message = nil)
    assert actual.eql?(expected), (message || "Expected #{actual} to have same content as #{expected}")
  end

  def refute_raises(exception, &block)
    begin
      block.call
      assert true
    rescue Exception => e
      refute e.is_an?(exception), exception_details(e, "Expected #{e} not to be raised")
      raise e
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
staticpress-0.7.1 spec/support/custom_matchers.rb
staticpress-0.7.0 spec/support/custom_matchers.rb