我已经定义了一个常见的多个app / signin_test.rb的测试,如下所示:
module Common
test "Sign in page test" do
visit '/'
assert true
end
end
我在不同的文件中创建了一个minitest,如下所示:
require '../common/signin_test'
module App1
class SigninTest < ActiveSupport::TestCase
include Common
end
end
当我运行测试时,它给出了以下错误:
Uncaught exception: wrong number of arguments (1 for 2)
signin_test.rb:2:in `test'