Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 492 Bytes
require 'rubygems'
require 'test/unit'
require 'zomg'
module ZOMG
class Test < Test::Unit::TestCase
include ZOMG::IDL::Nodes
ASSETS = File.expand_path(File.join(File.dirname(__FILE__), 'assets'))
undef :default_test
def assert_sexp(sexp, obj)
assert_equal(sexp, obj.to_sexp)
end
def method_missing(name, *args)
super unless args[0]
file = File.join(ASSETS, name.to_s, args[0])
super unless File.exists?(file)
file
end
end
end