From ead8736093bd156abf618b6c4a09ae1106ad775a Mon Sep 17 00:00:00 2001 From: Long Nguyen Date: Fri, 21 Apr 2017 08:43:54 +0700 Subject: [PATCH] Code improve --- test/env_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/env_test.rb b/test/env_test.rb index 43c644f61..25255598e 100644 --- a/test/env_test.rb +++ b/test/env_test.rb @@ -2,15 +2,15 @@ class EnvTest < Minitest::Test def test_current_env - assert Webpacker::Env.current == "production" + assert_equal Webpacker::Env.current, "production" end def test_env_is_development? - refute Webpacker::Env.development? + refute_predicate Webpacker::Env, :development? end def test_file_path correct_path = File.join(File.dirname(__FILE__), "config", "webpack", "paths.yml").to_s - assert Webpacker::Env.file_path.to_s == correct_path + assert_equal Webpacker::Env.file_path.to_s, correct_path end end