Welcome to mirror list, hosted at ThFree Co, Russian Federation.

webmock.rb « support « features - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 63bba1aac9a027476b671dd98c7820fe9b5092b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require "webmock/cucumber"
WebMock.disable_net_connect!(allow_localhost: true)

Before do
  stub_request(:head, /.+/).with(
    headers: {
      "Accept"     => "text/html",
      "User-Agent" => "OpenGraphReader/0.7.2 (+https://github.com/jhass/open_graph_reader)"
    }
  ).to_return(status: 200, body: "", headers: {"Content-Type" => "text/plain"})
end