Rspec request specs and Rails 5

前端 未结 2 1840
孤街浪徒
孤街浪徒 2021-02-09 04:04

I\'m starting a new project, my first with Rails 5.1.0. I have a pb with my first request spec.

describe \'Users\', type: :request do
  it \'are created from ext         


        
2条回答
  •  被撕碎了的回忆
    2021-02-09 04:57

    I think they changed the syntax recently. Now it should use keyword args. So, something like this:

    post '/api/v1/users', params: params, headers: headers
    

提交回复
热议问题