1
0
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:
Daniel Barber 2019-11-16 16:15:23 -05:00
parent b1bc2f4b34
commit e64e1643df
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
3 changed files with 4 additions and 3 deletions

1
.env.test Normal file
View File

@ -0,0 +1 @@
export SITE_URL=https://test.danbarber.me

View File

@ -7,5 +7,3 @@ MiniTest::Spec.register_spec_type(/something/, Minitest::HooksSpec)
def app
Micropub::Webserver
end
ENV["SITE_URL"] = "https://test.danbarber.me"

View File

@ -1,4 +1,6 @@
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require 'dotenv'
Dotenv.load(".env.test")
require "micropub"
require "rack/test"