add webmock
parent
bcc012f763
commit
c690b05d13
|
@ -11,3 +11,8 @@ license: MIT
|
|||
dependencies:
|
||||
myhtml:
|
||||
github: kostya/myhtml
|
||||
|
||||
development_dependencies:
|
||||
webmock:
|
||||
github: manastech/webmock.cr
|
||||
branch: master
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
require "./spec_helper"
|
||||
require "webmock"
|
||||
WebMock.stub(:any, "example.com")
|
||||
|
||||
describe Mechanize do
|
||||
# TODO: Write tests
|
||||
|
||||
it "works" do
|
||||
false.should eq(true)
|
||||
response = HTTP::Client.get("http://example.com")
|
||||
response.body.should eq ""
|
||||
response.status_code.should eq 200
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue