From 2efc5f3468b6366a96635a3fee929ba74f3ac570 Mon Sep 17 00:00:00 2001 From: "Garen J. Torikian" Date: Thu, 17 Sep 2020 14:01:26 +0100 Subject: [PATCH] DRY up test behaviors --- bundler/spec/update/gems/fund_spec.rb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/bundler/spec/update/gems/fund_spec.rb b/bundler/spec/update/gems/fund_spec.rb index 1b0e4585960c..5e2cc00db448 100644 --- a/bundler/spec/update/gems/fund_spec.rb +++ b/bundler/spec/update/gems/fund_spec.rb @@ -10,17 +10,9 @@ gem 'has_funding', '< 2.0' G - bundle "config set #{config}" if config - bundle :install end - shared_examples "a fund message outputter" do - it "should display fund message for updated gems" do - expect(out).to include("2 gems you directly depend on are looking for funding.") - end - end - context "when listed gem is updated" do before do gemfile <<-G @@ -32,6 +24,8 @@ bundle :update, :all => true end - it_behaves_like "a fund message outputter" + it "should display fund message for updated gems" do + expect(out).to include("2 gems you directly depend on are looking for funding.") + end end end