From 429717d8490d32010a1f073f218ecff8730b9452 Mon Sep 17 00:00:00 2001 From: Tim Riley Date: Tue, 12 Nov 2024 22:19:02 -0600 Subject: [PATCH] Switch to `before "install"` hook Combined with `hanami install` now running a `bundle install`, this will ensure the testing-related gems added to the `Gemfile` will be installed as part of running `hanami new`. --- lib/hanami/rspec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hanami/rspec.rb b/lib/hanami/rspec.rb index 4541581..d724996 100644 --- a/lib/hanami/rspec.rb +++ b/lib/hanami/rspec.rb @@ -32,7 +32,7 @@ def self.gem_loader require_relative "rspec/rake_tasks" if Hanami::CLI.within_hanami_app? - Hanami::CLI.after "install", Commands::Install + Hanami::CLI.before "install", Commands::Install Hanami::CLI.after "generate slice", Commands::Generate::Slice if Hanami.bundled?("hanami-controller")