Sha256: 43d17729fef98176e748b2f885b03300854d1006265c7fa4501c5b84270a0563
Contents?: true
Size: 814 Bytes
Versions: 1
Compression:
Stored size: 814 Bytes
Contents
require 'test_helper' class EnvManager::LoaderTest < Minitest::Test include TestHelper def test_loader env = EnvManager::Loader.new(App.root) refute_empty env.read end def test_load env = EnvManager.load(App.root) refute_nil env.database_url refute_nil ::ENV["DATABASE_URL"] assert_equal "development", env.rack_env assert_equal "development", ::ENV["RACK_ENV"] end def test_app_load assert_equal 'development', App.config.rack_env assert_equal 'postgres://robert@127.0.0.1:5432/get_the_rundown', App.config.database_url end def test_app_booleans assert App.config.development? refute App.config.test? refute App.config.staging? refute App.config.production? end def test_env assert_equal 'development', App.config.env end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
env_manager-0.0.11 | test/loader_test.rb |