以下は、IDとトークンmodel
を受け入れる私の方法です。auth
Project.find( id: '22', authorization: auth)
以下は私のテストです。
require 'project'
RSpec.describe Project do
it 'finds an project' do
project = class_double("project")
expect(project).to receive(:find).with()
// How can i send id and authorization inside with
end
end
this test pass
?を渡しid
てauthorization
内部で作成するにはどうすればよいwith
ですか。