require webmock in spec_helper
parent
9edb9bc5f0
commit
e34f2e609d
|
@ -1,5 +1,4 @@
|
||||||
require "./spec_helper"
|
require "./spec_helper"
|
||||||
require "webmock"
|
|
||||||
WebMock.stub(:get, "example.com")
|
WebMock.stub(:get, "example.com")
|
||||||
WebMock.stub(:get, "http://example.com/?foo=bar&foo1=bar2")
|
WebMock.stub(:get, "http://example.com/?foo=bar&foo1=bar2")
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require "./spec_helper"
|
require "./spec_helper"
|
||||||
require "webmock"
|
|
||||||
WebMock.stub(:get, "example.com")
|
WebMock.stub(:get, "example.com")
|
||||||
WebMock.stub(:get, "fail_example.com").to_return(status: 500)
|
WebMock.stub(:get, "fail_example.com").to_return(status: 500)
|
||||||
WebMock.stub(:get, "body_example.com").to_return(body: "hello")
|
WebMock.stub(:get, "body_example.com").to_return(body: "hello")
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
require "spec"
|
require "spec"
|
||||||
|
require "webmock"
|
||||||
require "../src/mechanize"
|
require "../src/mechanize"
|
||||||
|
|
Loading…
Reference in New Issue