lib/spiker/generators/templates/multi/test_helper.rb in spiker-0.1.5 vs lib/spiker/generators/templates/multi/test_helper.rb in spiker-0.1.6
- old
+ new
@@ -11,8 +11,8 @@
Minitest::Reporters.use!
# ensure the environment is available
class DefaultEnvironmentTest < MiniTest::Test
def test_default_environment
- assert_equal "test", ENV["TEST_VALUE"]
+ assert_equal "test", ENV.fetch("TEST_VALUE", nil)
end
end