describe Inventory::Export do
describe "export page" do
it "check to show export page" do
user = FactoryGirl.build(:admin)
activity_type = FactoryGirl.create(:activity_type)
visit "/users/sign_in"
fill_in "user_Login", :with => user.Login
fill_in "user_password", :with => user.password
click_button "user_submit"
visit "/admin/inventory/exports"
save_and_open_page
end
end
end
的代码
visit "/admin/inventory/exports"
不影响
的结果save_and_open_page
我获得授权后重定向的页面
答案 0 :(得分:2)
试
visit admin_inventory_exports_path
使用rake routes
检查路线的实际路径。