1
我已經在我的應用程序,以確保一切工作的功能和定製化管理的軌道安裝,因爲它應該,我想爲它Rspec的 - 測試rails_admin定製
我試圖做一些測試完成這樣的事情
require 'spec_helper'
describe RailsAdmin::MainController do
render_views
let(:admin) { FactoryGirl.create(:admin_user) }
describe "should manage a dashboard" do
before :each do
sign_in admin
end
it "should render dashboard" do
get :dashboard
response.should be_success
end
end
end
這是工作時間以前,但突然每次運行我收到此錯誤
Failure/Error: get :dashboard
ActionController::RoutingError:
No route matches {:controller=>"rails_admin/main", :action=>"dashboard"}
這裏的規範是我的規格助手0123的副本https://gist.github.com/3173172
鏈接已損壞。 – 2016-05-13 13:16:39