diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index 534c9b5537..cc23f9b389 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -128,7 +128,7 @@ module Bundler else Bundler.ui.warn "Your Gemfile lists the gem #{current.name} (#{current.requirement}) more than once.\n" \ "You should probably keep only one of them.\n" \ - "Remove any duplicate entries and specify the gem only once (per group).\n" \ + "Remove any duplicate entries and specify the gem only once.\n" \ "While it's not a problem now, it could cause errors if you change the version of one of them later." end diff --git a/spec/bundler/commands/install_spec.rb b/spec/bundler/commands/install_spec.rb index e279d71827..8e161a4aae 100644 --- a/spec/bundler/commands/install_spec.rb +++ b/spec/bundler/commands/install_spec.rb @@ -330,7 +330,7 @@ RSpec.describe "bundle install with gem sources" do G expect(err).to include("Your Gemfile lists the gem rack (>= 0) more than once.") - expect(err).to include("Remove any duplicate entries and specify the gem only once (per group).") + expect(err).to include("Remove any duplicate entries and specify the gem only once.") expect(err).to include("While it's not a problem now, it could cause errors if you change the version of one of them later.") end @@ -342,7 +342,7 @@ RSpec.describe "bundle install with gem sources" do G expect(err).to include("Your Gemfile lists the gem rack (= 1.0) more than once.") - expect(err).to include("Remove any duplicate entries and specify the gem only once (per group).") + expect(err).to include("Remove any duplicate entries and specify the gem only once.") expect(err).to include("While it's not a problem now, it could cause errors if you change the version of one of them later.") end end