Sha256: 09804db1feb2aa14aaae9acad0ab44f9e42aa912c256549d22529880167b49c8

Contents?: true

Size: 1 KB

Versions: 21

Compression:

Stored size: 1 KB

Contents

require "test_helper"

class RakeTasksTest < Minitest::Test
  def test_rake_tasks
    output = Dir.chdir(test_app_path) { `rake -T` }
    assert_includes output, "webpacker"
    assert_includes output, "webpacker:check_binstubs"
    assert_includes output, "webpacker:check_node"
    assert_includes output, "webpacker:check_yarn"
    assert_includes output, "webpacker:clobber"
    assert_includes output, "webpacker:compile"
    assert_includes output, "webpacker:install"
    assert_includes output, "webpacker:install:angular"
    assert_includes output, "webpacker:install:elm"
    assert_includes output, "webpacker:install:react"
    assert_includes output, "webpacker:install:vue"
    assert_includes output, "webpacker:verify_install"
  end

  def test_rake_task_webpacker_check_binstubs
    output = Dir.chdir(test_app_path) { `rake webpacker:check_binstubs 2>&1` }
    refute_includes output, "webpack binstubs not found."
  end

  private
    def test_app_path
      File.expand_path("test_app", __dir__)
    end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
webpacker-3.6.0 test/rake_tasks_test.rb
webpacker-jets-3.2.101 test/rake_tasks_test.rb
webpacker-jets-3.2.100 test/rake_tasks_test.rb
webpacker-4.0.0.pre.3 test/rake_tasks_test.rb
webpacker-3.5.5 test/rake_tasks_test.rb
webpacker-3.5.3 test/rake_tasks_test.rb
webpacker-3.5.2 test/rake_tasks_test.rb
webpacker-3.5.1 test/rake_tasks_test.rb
webpacker-3.5.0 test/rake_tasks_test.rb
webpacker-3.4.3 test/rake_tasks_test.rb
webpacker-4.0.0.pre.pre.2 test/rake_tasks_test.rb
webpacker-4.0.0.pre.pre.1 test/rake_tasks_test.rb
webpacker-3.4.1 test/rake_tasks_test.rb
webpacker-3.4.0 test/rake_tasks_test.rb
webpacker-3.3.1 test/rake_tasks_test.rb
webpacker-3.3.0 test/rake_tasks_test.rb
webpacker-3.2.2 test/rake_tasks_test.rb
webpacker-3.2.1 test/rake_tasks_test.rb
webpacker-3.2.0 test/rake_tasks_test.rb
webpacker-3.1.1 test/rake_tasks_test.rb