Skip to content
Extraits de code Groupes Projets
webmock.rb 356 octets
Newer Older
  • Learn to ignore specific revisions
  • require "webmock/cucumber"
    WebMock.disable_net_connect!(allow_localhost: true)
    
    Before do
      stub_request(:head, /.+/).with(
        headers: {
          "Accept"     => "text/html",
          "User-Agent" => "OpenGraphReader/0.6.1 (+https://github.com/jhass/open_graph_reader)"
        }
      ).to_return(status: 200, body: "", headers: {"Content-Type" => "text/plain"})
    end