8
require File.dirname(__FILE__) + '/../lib/validatable'
10
class << Test::Unit::TestCase
11
def expect(expected_value, &block)
12
define_method :"test_#{caller.first.split("/").last}" do
14
assert_equal expected_value, instance_eval(&block)
15
rescue Exception => ex
16
raise ex unless expected_value.is_a?(Class) && ex.is_a?(expected_value)
17
assert_equal expected_value, ex.class
23
class Test::Unit::TestCase
24
def assert_array_equal a, b
25
assert_equal Set.new(a), Set.new(b)
30
def to_blank_options_hash
31
self.inject({}) {|hash, value| hash[value] = nil; hash }
b'\\ No newline at end of file'