require webmock in spec_helper

master
Kanezoh 2021-06-11 10:44:59 +09:00
parent 9edb9bc5f0
commit e34f2e609d
3 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
require "./spec_helper"
require "webmock"
WebMock.stub(:get, "example.com")
WebMock.stub(:get, "http://example.com/?foo=bar&foo1=bar2")

View File

@ -1,5 +1,4 @@
require "./spec_helper"
require "webmock"
WebMock.stub(:get, "example.com")
WebMock.stub(:get, "fail_example.com").to_return(status: 500)
WebMock.stub(:get, "body_example.com").to_return(body: "hello")

View File

@ -1,2 +1,3 @@
require "spec"
require "webmock"
require "../src/mechanize"