How to use Webmock to stub request with any body and header? I tried to use regex
WebMock.stub_request(:post, \'api.quickblox.com/\').with(:body => /.*?/, :h
Check out the Webmock docs on headers. You need to provide it a hash with further details on what you are matching.