discourse/spec/tasks/assets_precompile_spec.rb
Alan Guo Xiang Tan 6e1aeb1f50
DEV: Fix constant redefinition warnings when running specs (#29837)
Don't load rake files over and over again when running specs.
2024-11-20 15:17:36 +11:00

13 lines
360 B
Ruby

# frozen_string_literal: true
RSpec.describe "assets:precompile" do
describe "assets:precompile:theme_transpiler" do
it "compiles the js processor" do
path = Rake::Task["assets:precompile:theme_transpiler"].actions.first.call
expect(path).to end_with("tmp/theme-transpiler.js")
expect(File.exist?(path)).to eq(true)
end
end
end