curl -d "key1=value1&key2=value2" "uri"
"facebook_token[url]=https:\//www.facebook.com\/dialog\/oauth?client_id=123456&redirec_uri=blablabla"
распарсилась на два параметра (facebook_token[url]
и redirec_uri
)facebook_token[url]
и facebook_token[client_id]
. let(:confirm_oauth) { double deliver_now: nil }
before do
allow(ConfirmOauth).to receive(:email_confirmation)
.and_return confirm_oauth
end
subject! { do_something_that_calls_mailer }
it do
expect(ConfirmOauth).to have_received(:email_confirmation).with user
expect(confirm_oauth).to have_received :deliver_now
end
devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:avatar, :name,...) }