mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 11:23:43 +08:00
6e1aeb1f50
Don't load rake files over and over again when running specs.
13 lines
360 B
Ruby
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
|