Sha256: 68d2485991cb143a0417086ba894fb2af56215056a153cca9cea3b420044cf37
Contents?: true
Size: 878 Bytes
Versions: 22
Compression:
Stored size: 878 Bytes
Contents
require "test_helper" class EngineRakeTasksTest < Minitest::Test def setup remove_webpack_binstubs end def teardown remove_webpack_binstubs end def test_task_mounted output = Dir.chdir(mounted_app_path) { `rake -T` } assert_includes output, "app:webpacker" end def test_binstubs Dir.chdir(mounted_app_path) { `bundle exec rake app:webpacker:binstubs` } webpack_binstub_paths.each { |path| assert File.exist?(path) } end private def mounted_app_path File.expand_path("mounted_app", __dir__) end def webpack_binstub_paths [ "#{mounted_app_path}/test/dummy/bin/webpacker", "#{mounted_app_path}/test/dummy/bin/webpacker-dev-server", ] end def remove_webpack_binstubs webpack_binstub_paths.each do |path| File.delete(path) if File.exist?(path) end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
shakapacker-6.0.0.rc.12 | test/engine_rake_tasks_test.rb |
shakapacker-6.0.0.rc.6 | test/engine_rake_tasks_test.rb |