mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
19 lines
486 B
Ruby
19 lines
486 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe "assets:precompile" do
|
|
before do
|
|
Rake::Task.clear
|
|
Discourse::Application.load_tasks
|
|
end
|
|
|
|
describe "assets:precompile:js_processor" do
|
|
it "compiles the js processor" do
|
|
out = capture_stdout { Rake::Task["assets:precompile:js_processor"].invoke }
|
|
|
|
expect(out).to match(%r{Compiled js-processor: tmp/js-processor})
|
|
path = out.match(/: (.+)/)[1]
|
|
expect(File.exist?(path)).to eq(true)
|
|
end
|
|
end
|
|
end
|