mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-10 07:38:10 -05:00
14 lines
387 B
Ruby
14 lines
387 B
Ruby
# 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.8.0 (+https://github.com/jhass/open_graph_reader)"
|
|
}
|
|
).to_return(status: 200, body: "", headers: {"Content-Type" => "text/plain"})
|
|
end
|