summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-23 21:46:19 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-31 14:19:15 +0100
commit00ab157c8581b2b0775a016292e11e9025c507cc (patch)
tree882e388bba981afc03815307e91634e2f683f8c9
parent3e9233c18f4365662e7a8e18af3f19380c9c85e4 (diff)
downloadbundler-00ab157c8581b2b0775a016292e11e9025c507cc.tar.gz
Improve readability
The `let` does not add anything.
-rw-r--r--spec/install/deploy_spec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/install/deploy_spec.rb b/spec/install/deploy_spec.rb
index faa51e550c..612533d539 100644
--- a/spec/install/deploy_spec.rb
+++ b/spec/install/deploy_spec.rb
@@ -281,10 +281,6 @@ RSpec.describe "install with --deployment or --frozen" do
end
context "when replacing a host with the same host with credentials" do
- let(:success_message) do
- "Bundle complete!"
- end
-
before do
gemfile <<-G
source "http://user_name:password@localgemserver.test/"
@@ -319,7 +315,7 @@ RSpec.describe "install with --deployment or --frozen" do
it "allows the replace" do
bundle! :install
- expect(out).to match(/#{success_message}/)
+ expect(out).to match(/Bundle complete!/)
end
end
@@ -339,7 +335,7 @@ RSpec.describe "install with --deployment or --frozen" do
it "allows the replace" do
bundle :install
- expect(out).to match(/#{success_message}/)
+ expect(out).to match(/Bundle complete!/)
end
end