Skip to content

Commit

Permalink
Fix generator tests (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon authored Jan 18, 2025
1 parent 7a73127 commit f3280e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source "https://rubygems.org"

gem "puma", "~> 5.6"
gem "traces", "~> 0.9.1"
gem "concurrent-ruby", "1.3.4" # https://github.com/rails/rails/pull/54264

ENV["RAILS_VERSION"] = "6.1"

Expand Down
7 changes: 6 additions & 1 deletion spec/support/example_app_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ def setup_example_app

root_path = example_app_path.join('..')
FileUtils.cd(root_path) do
system("rails new #{app_name} -d postgresql --skip-action-text --skip-action-mailer --skip-action-mailbox --skip-action-cable --skip-git --skip-sprockets --skip-listen --skip-javascript --skip-turbolinks --skip-solid --skip-kamal --skip-system-test --skip-test-unit --skip-bootsnap --skip-spring --skip-active-storage")
system <<~BASH, exception: true
bundle exec rails new #{app_name} -d postgresql \
--skip-action-text --skip-action-mailer --skip-action-mailbox --skip-action-cable --skip-git --skip-sprockets \
--skip-listen --skip-javascript --skip-turbolinks --skip-solid --skip-kamal --skip-system-test --skip-test-unit \
--skip-bootsnap --skip-spring --skip-active-storage
BASH
end

FileUtils.rm_rf("#{example_app_path}/config/initializers/assets.rb")
Expand Down

0 comments on commit f3280e6

Please sign in to comment.