mirror of
https://github.com/danbee/micropub.git
synced 2025-03-04 08:59:13 +00:00
Load test env from file
This commit is contained in:
parent
b1bc2f4b34
commit
e64e1643df
@ -7,5 +7,3 @@ MiniTest::Spec.register_spec_type(/something/, Minitest::HooksSpec)
|
||||
def app
|
||||
Micropub::Webserver
|
||||
end
|
||||
|
||||
ENV["SITE_URL"] = "https://test.danbarber.me"
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
|
||||
require 'dotenv'
|
||||
Dotenv.load(".env.test")
|
||||
|
||||
require "micropub"
|
||||
|
||||
require "rack/test"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user