用rails 2.3.2编写单元测试的时候遇到
undefined method `use_transactional_fixtures='
的错误,解决该问题需要将 test/test_help.rb中的
class Test::Unit::TestCase
替换成
class ActiveSupport::TestCase
即可
本文介绍了解决Rails 2.3.2中单元测试出现的undefinedmethod`use_transactional_fixtures'错误的方法。通过将Test::Unit::TestCase替换为ActiveSupport::TestCase,可以成功修复该问题。
用rails 2.3.2编写单元测试的时候遇到
undefined method `use_transactional_fixtures='
的错误,解决该问题需要将 test/test_help.rb中的
class Test::Unit::TestCase
替换成
class ActiveSupport::TestCase
即可
3518
1706

被折叠的 条评论
为什么被折叠?