Filipe Fernandes

Results 2 comments of Filipe Fernandes

I try to use a block o match request but the program assumes that the stub_request don't have the field 'with'. I have two fields that I test using Faker...

stub_request(:post, "url"). with{ |request| request.body == {"name" => "John Doe","email" => /.*@.*/ ,"phone_number" => /^[0-9]*$/, "linkedin_profile" => ""} }. to_return(status: 200, body: "", headers: {})