transfer_more/spec/transfer_more_spec.cr

12 lines
266 B
Crystal

require "./spec_helper"
describe TransferMore do
it "works" do
spawn { Kemal.run }
url = `curl --progress-bar --upload-file README.md http://localhost:3000/readme.md`
pp url
data = `curl #{url}`
data.should eq File.read("README.md")
end
end