Rspec / Capybara: Testing if a controller method is called

后端 未结 0 1016
走了就别回头了
走了就别回头了 2021-02-10 14:07

Given I set up a HomeController with an index action

class HomeController < ApplicationController
  def index
    @users = User.all
  end
end
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题