require "webpacker_test" class EnvTest < Minitest::Test def test_current_env assert_equal Webpacker::Env.current, "production" assert_equal Webpacker.env, "production" assert Webpacker.env.production? end def test_file_path correct_path = File.join(File.dirname(__FILE__), "test_app/config", "webpacker.yml").to_s assert_equal Webpacker::Env.file_path.to_s, correct_path end end