Controller spec unknown keyword: id
HTTP request methods will accept only the following keyword arguments
params, headers, env, xhr, format
According to the new API, you should use keyword arguments, params
in this case:
it 'should show field' do get :show, params: { id: field.id } expect(response.status).to eq(200) end