diff options
author | Christoph Helma <helma@in-silico.ch> | 2015-10-08 14:10:00 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2015-10-08 14:10:00 +0200 |
commit | 596ef28dea32baa37b47fa5b82bdc4649ca69382 (patch) | |
tree | 4a21f548adeab168276d237871cc19b4dede6836 /test/test_environment.rb | |
parent | 1a56148aadef031c4f487bc23fda43f4ac5b7369 (diff) |
new environment variable LAZAR_ENV for databases and log levels
Diffstat (limited to 'test/test_environment.rb')
-rw-r--r-- | test/test_environment.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_environment.rb b/test/test_environment.rb new file mode 100644 index 0000000..4c2af95 --- /dev/null +++ b/test/test_environment.rb @@ -0,0 +1,10 @@ +require_relative "setup.rb" + +class EnvironmentTest < MiniTest::Test + def test_lazar_environment + assert_equal "development", ENV["LAZAR_ENV"] + assert_equal "development", ENV["MONGOID_ENV"] + assert_equal "development", ENV["RACK_ENV"] + assert_equal "development", Mongoid.clients["default"]["database"] + end +end |