Skip to content

Commit

Permalink
Prevent warnings if a generator tries to run
Browse files Browse the repository at this point in the history
[DEPRECATED] This Gemfile does not include an explicit global source. Not using an explicit global source may result in a different lockfile being generated depending on the gems you have installed locally before bundler is run. Instead, define a global source in your Gemfile like this: source "https://rubygems.org".
  • Loading branch information
louis-antonopoulos committed Oct 29, 2024
1 parent 7cb8ebd commit 51a3298
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/generators/suspenders/install/web_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class WebGeneratorTest < Rails::Generators::TestCase

def prepare_destination
touch "Gemfile"

File.open("test/dummy/Gemfile", "w") do |f|
f.write('source "https://rubygems.org"')
end
end

def restore_destination
Expand Down

0 comments on commit 51a3298

Please sign in to comment.