1
8
将设置:activate_authlogic类放在单元测试类中,而不是放在test_helper中的activesupport::testcase声明中。 例如
|
2
3
我必须包含这样的AuthLogic测试用例模块才能使事情正常工作。
我不知道为什么AuthLogic不包含在我的系统中…但是代码(在authlogic/test_的情况下)在我的系统上不起作用:
|
3
3
|
4
2
Setup:AuthLogic行需要位于ActionController::TestCase类中,而不是ActiveSupport::TestCase。 在你的测试助手里,把这个放在:
|
mg610 · 如何开始C++单元测试 2 年前 |
Phil Gunning · 使用嵌套函数更改进行模拟测试 2 年前 |
shilin agre · 在Python中测试修饰函数 2 年前 |
SlipScout · Unittest只传递单个值,而不是获取多个值 2 年前 |
Alex · 从实际对象的实例返回默认模拟结果 2 年前 |