Sha256: b47f52cd15b27b9cd09b66bae12db8933437f27b7a7e4f3c0781710eed36b8ee

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

require "test_helper"

class EnvTest < Webpacker::Test
  def test_current
    assert_equal Webpacker.env, Rails.env
  end

  def test_custom_without_config
    with_rails_env("foo") do
      assert_equal Webpacker.env, "production"
    end
  end

  def test_custom_with_config
    with_rails_env("staging") do
      assert_equal Webpacker.env, "staging"
    end
  end

  def test_default
    assert_equal Webpacker::DEFAULT_ENV, "production"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shakapacker-6.5.5 test/env_test.rb
shakapacker-6.5.4 test/env_test.rb
shakapacker-6.5.3 test/env_test.rb
shakapacker-6.5.2 test/env_test.rb
shakapacker-6.5.1 test/env_test.rb