Sha256: 376c86663a68a622f1bc237ebf188c3b889580c7b4664c099e65ddff9ca93156
Contents?: true
Size: 707 Bytes
Versions: 7
Compression:
Stored size: 707 Bytes
Contents
#!/usr/bin/env ruby #--- # Copyright 2003-2012 by Jim Weirich (jim.weirich@gmail.com). # All rights reserved. # Permission is granted for use, copying, modification, distribution, # and distribution of modified versions of this work as long as the # above copyright notice is included. #+++ require 'flexmock/noop' class FlexMock class DefaultFrameworkAdapter def assert_block(msg, &block) unless yield fail assertion_failed_error, msg end end def assert_equal(a, b, msg=nil) assert_block(msg || "Expected equal") { a == b } end class AssertionFailedError < StandardError; end def assertion_failed_error AssertionFailedError end end end
Version data entries
7 entries across 7 versions & 1 rubygems