【发布时间】:2013-12-03 11:49:33
【问题描述】:
我想更改我的以下代码
load "API.rb"
require 'minitest/spec'
require 'minitest/autorun'
class Test < MiniTest::Unit::TestCase
MiniTest::Assertions.diff = nil
def setup
end
def test_character_detection
assert_equal "Gandalf", Story.get_first_character(2717)
end
end
puts "TEST"
因此测试将在正常代码之前运行(在这种情况下 - 'puts "TEST"')。
【问题讨论】: