Rspec / Capybara: Testing if a controller method is called

后端 未结 0 2013
温柔的废话
温柔的废话 2021-02-10 14:02

Given I set up a HomeController with an index action

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