Because we have added the class to the Web application, when we add our module to the server our test class will be available for execution in the server environment.
因为我们已经将类添加到了Web应用程序,所以在将模块添加到服务器时,我们的测试类可以在服务器环境中执行。
In some initialization code, open the ActiveRecord base class and add your acts_as_ module.
在某些初始化代码中,打开ActiveRecord基类并添加acts_as _模块。
应用推荐