Rake测试:配置文件给出错误



我正试图在我的应用程序上做一些测试。基于此指南在这里

我运行这样的命令rake test:profilerake test:benchmark

这两次它都给我这样的错误:

DEPRECATION WARNING: ActionDispatch::ShowExceptions.rescue_responses is deprecated. Please configure your exceptio application config instead. (called from <top (required)> at /home3/ecotec11/rails_apps/darbs/config/environment.
/home3/ecotec11/rails_apps/darbs/app/models/admin.rb:1:in `<top (required)>': Admin is not a class (TypeError)

Admin.rb

    class Admin < ActiveRecord::Base
       devise :database_authenticatable, :registerable,
             :recoverable, :rememberable, :trackable, :validatable   
       attr_accessible :email, :password, :password_confirmation, :remember_me  
    end

谁有什么主意可以帮助我?由于

你可能有

class Admin < ActiveRecord::Base

行作为admin.rb文件中的第一行。但你可能在应用程序的其他地方定义了名为Admin的常量,请更改该常量的名称。

相关内容

最新更新