2023-08-25 05:44:30 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
RSpec.describe "assets:precompile" do
|
2023-10-02 06:36:06 -04:00
|
|
|
describe "assets:precompile:theme_transpiler" do
|
2023-08-25 05:44:30 -04:00
|
|
|
it "compiles the js processor" do
|
2023-10-18 19:00:15 -04:00
|
|
|
path = Rake::Task["assets:precompile:theme_transpiler"].actions.first.call
|
2023-08-25 05:44:30 -04:00
|
|
|
|
2024-08-01 12:59:34 -04:00
|
|
|
expect(path).to end_with("tmp/theme-transpiler.js")
|
2023-08-25 05:44:30 -04:00
|
|
|
expect(File.exist?(path)).to eq(true)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|