From 0f05e69cd0f188134e41a086ca78633b5c207191 Mon Sep 17 00:00:00 2001 From: Lukas Bischof Date: Wed, 14 Dec 2022 14:04:07 +0100 Subject: [PATCH] Enhance RSpec prepare command with JS build (#128) --- lib/tasks/jsbundling/build.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/jsbundling/build.rake b/lib/tasks/jsbundling/build.rake index 0481cf0..e189f1e 100644 --- a/lib/tasks/jsbundling/build.rake +++ b/lib/tasks/jsbundling/build.rake @@ -13,6 +13,8 @@ end if Rake::Task.task_defined?("test:prepare") Rake::Task["test:prepare"].enhance(["javascript:build"]) +elsif Rake::Task.task_defined?("spec:prepare") + Rake::Task["spec:prepare"].enhance(["javascript:build"]) elsif Rake::Task.task_defined?("db:test:prepare") Rake::Task["db:test:prepare"].enhance(["javascript:build"]) end