19 lines
502 B
Ruby
19 lines
502 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe "assets:precompile" do
|
|
before do
|
|
Rake::Task.clear
|
|
Discourse::Application.load_tasks
|
|
end
|
|
|
|
describe "assets:precompile:theme_transpiler" do
|
|
it "compiles the js processor" do
|
|
out = capture_stdout { Rake::Task["assets:precompile:theme_transpiler"].invoke }
|
|
|
|
expect(out).to match(%r{Compiled theme-transpiler: tmp/theme-transpiler})
|
|
path = out.match(/: (.+)/)[1]
|
|
expect(File.exist?(path)).to eq(true)
|
|
end
|
|
end
|
|
end
|