Sha256: 5d88becb8f43916d22c5f124128d422c2165fdd1cc177e2d045f48ed43ccc8d4

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

module SelfTestingFramework
  class TestCase

    class << self
      def run(name)
        iam = new
        iam.before
        iam.send(name)
        iam.after
      end
    end

    def before
    end

    def after
    end

    def assert(arg, fail_message = nil)
      fail_message ||= "Assertion Fails"
      raise AssertFalse.new(fail_message) unless arg
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
self_testing_framework-0.0.1 lib/self_testing_framework/test_case.rb