标签: ruby-on-rails rspec
考虑我在application_controller_spec.rb中。在此文件中,我需要将users_controller.rb的索引动作称为get :index,但这不起作用:
application_controller_spec.rb
users_controller.rb
get :index
get :index :controller :user_controller get 'UsersController#index'