mechanize.cr/spec/mechanize_spec.cr

14 lines
272 B
Crystal
Raw Normal View History

2021-04-19 06:50:12 +02:00
require "./spec_helper"
2021-06-08 14:20:46 +02:00
require "webmock"
WebMock.stub(:any, "example.com")
2021-04-19 06:50:12 +02:00
describe Mechanize do
# TODO: Write tests
it "works" do
2021-06-08 14:20:46 +02:00
response = HTTP::Client.get("http://example.com")
response.body.should eq ""
response.status_code.should eq 200
2021-04-19 06:50:12 +02:00
end
end