invidious/lib/exception_page/spec/spec_helper.cr
Leon Klingele 40fb17791e
shard: track dependencies
Commit the whole ./lib/ folder which stores the Crystal dependencies.
This has a few benefits:

- Allows to build the project without a connection to the Internet
  to retrieve dependencies.
- Makes the project resistant against dependency re-tags which might
  include malicious code.
2019-08-15 01:51:27 +02:00

26 lines
422 B
Crystal

require "spec"
require "lucky_flow"
require "http"
require "../src/exception_page"
require "./support/**"
include LuckyFlow::Expectations
server = TestServer.new(3002)
LuckyFlow.configure do |settings|
settings.base_uri = "http://localhost:3002"
settings.stop_retrying_after = 40.milliseconds
end
spawn do
server.listen
end
at_exit do
LuckyFlow.shutdown
server.close
end
Habitat.raise_if_missing_settings!