Sha256: d83c9eb4ad1b2141b07b02fd5050ddd13b185f6f99ddaeba783c0936f10797a9
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
require "webpacker_test" class ConfigurationTest < Minitest::Test def test_entry_path entry_path = File.join(File.dirname(__FILE__), "test_app/app/javascript", "packs").to_s assert_equal entry_path, Webpacker::Configuration.entry_path.to_s end def test_file_path file_path = File.join(File.dirname(__FILE__), "test_app/config", "webpacker.yml").to_s assert_equal file_path, Webpacker::Configuration.file_path.to_s end def test_manifest_path manifest_path = File.join(File.dirname(__FILE__), "test_app/public/packs", "manifest.json").to_s assert_equal manifest_path, Webpacker::Configuration.manifest_path.to_s end def test_output_path output_path = File.join(File.dirname(__FILE__), "test_app/public/packs").to_s assert_equal output_path, Webpacker::Configuration.output_path.to_s end def test_source assert_equal "app/javascript", Webpacker::Configuration.source.to_s end def test_source_path source_path = File.join(File.dirname(__FILE__), "test_app/app/javascript").to_s assert_equal source_path, Webpacker::Configuration.source_path.to_s end def test_compile? refute Webpacker::Configuration.compile? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webpacker-react-on-rails-3.0.0.rc.1 | test/configuration_test.rb |
webpacker-react-on-rails-2.0 | test/configuration_test.rb |