Skip to content

Commit

Permalink
Code improve
Browse files Browse the repository at this point in the history
  • Loading branch information
sirius248 committed Apr 21, 2017
1 parent f78fadd commit ead8736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/env_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ead8736

Please sign in to comment.