Sha256: a8dcf228718079e07174792032624f54b0d47a80ba45763639216f3b87806eb3

Contents?: true

Size: 428 Bytes

Versions: 9

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class ModeTest < ViteRails::Test
  def test_current
    assert_equal ViteRails.config.mode, Rails.env
  end

  def test_custom_without_config
    with_rails_env('foo') do
      assert_equal ViteRails.config.mode, 'production'
    end
  end

  def test_custom_with_config
    with_rails_env('staging') do
      assert_equal ViteRails.config.mode, 'staging'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vite_rails-1.0.8 test/mode_test.rb
vite_rails-1.0.7 test/mode_test.rb
vite_rails-1.0.6 test/mode_test.rb
vite_rails-1.0.5 test/mode_test.rb
vite_rails-1.0.4 test/mode_test.rb
vite_rails-1.0.3 test/mode_test.rb
vite_rails-1.0.2 test/mode_test.rb
vite_rails-1.0.1 test/mode_test.rb
vite_rails-1.0.0 test/mode_test.rb