add webmock

master
Kanezoh 2021-06-08 21:20:46 +09:00
parent bcc012f763
commit c690b05d13
2 changed files with 10 additions and 1 deletions

View File

@ -11,3 +11,8 @@ license: MIT
dependencies:
myhtml:
github: kostya/myhtml
development_dependencies:
webmock:
github: manastech/webmock.cr
branch: master

View File

@ -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