Skip to content

Commit

Permalink
Switch to before "install" hook (#30)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
timriley authored Nov 13, 2024
1 parent e24ce36 commit 3236683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hanami/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3236683

Please sign in to comment.