Sha256: 898e628cf79284484b7cc03d2d46dddc413a6cc4187189b7aacd1aeafca85960

Contents?: true

Size: 724 Bytes

Versions: 22

Compression:

Stored size: 724 Bytes

Contents

#!/usr/bin/env ruby

#---
# Copyright 2003, 2004, 2005, 2006, 2007 by Jim Weirich (jim@weirichhouse.org).
# 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

22 entries across 22 versions & 2 rubygems

Version Path
flexmock-0.8.11 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.10 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.9 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.8 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.7 lib/flexmock/default_framework_adapter.rb
flexmock-0.6.2 lib/flexmock/default_framework_adapter.rb
flexmock-0.7.1 lib/flexmock/default_framework_adapter.rb
flexmock-0.6.0 lib/flexmock/default_framework_adapter.rb
flexmock-0.6.1 lib/flexmock/default_framework_adapter.rb
flexmock-0.7.0 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.0 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.1 lib/flexmock/default_framework_adapter.rb
flexmock-0.6.4 lib/flexmock/default_framework_adapter.rb
flexmock-0.6.3 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.6 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.5 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.2 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.4 lib/flexmock/default_framework_adapter.rb
flexmock-0.8.3 lib/flexmock/default_framework_adapter.rb
mack-0.8.2 lib/gems/flexmock-0.8.3/lib/flexmock/default_framework_adapter.rb