Sha256: 4a1d08e77ab3c330d108fe1252560a5ee27892b63fb5955076e357cb11a51db0
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
require File.expand_path('../helper', __FILE__) Citrus.load File.expand_path('../../examples/calc', __FILE__) class CalcFileTest < Test::Unit::TestCase include CalcTestMethods # It's a bit hacky, but since this test runs before calc_test.rb we can # avoid getting the "already defined constant" error by renaming the Calc # constant here. CalcFile = Object.__send__(:remove_const, :Calc) def do_test(expr) super(expr, CalcFile) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
citrus-2.3.2 | test/calc_file_test.rb |
citrus-2.3.1 | test/calc_file_test.rb |
citrus-2.3.0 | test/calc_file_test.rb |