我有以下情況: EDITED 在我的routes.rb namespace :api, defaults: { format: :json } do
namespace :v1 do
# the definitions of other routes of my api
# ...
match '*path', to: 'unmatch_route#n
在Rspec控制器測試中,我想檢查我正在測試的控制器中的實例變量的值。 例如, 控制器: class ThingsController < ApplicationController
def index
@things = Thing.all
end
end
規格: RSpec.describe UsersController, type: :controlle