我有一个PathsHelper,它通过处理额外的参数以及来自当前url的上下文来覆盖foo_url和foo_path。这包含在ApplicationController中。describe ApplicationController do ... describe "#foo_path" do end我想知道这样做是不是更好: describe "#foo_url" do
我正在尝试创建一个RSpec测试,以检测请求是否会导致控制器崩溃,通常是500个错误。NoMethodError params.require(:required_parameter) # raises ActionController::ParameterMissingdescribe "Post", type: :request do
it 'does not cra