diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-10-15 13:20:25 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-10-15 17:19:02 +0900 |
commit | d386a58f6f1865aaa35eda5af55cff3ff3cca4ca (patch) | |
tree | 0665fe806540deae7f8e52095af6dba70f940aa3 /spec/bundler/update/gems/fund_spec.rb | |
parent | 7ffd14a18c341565afaf80d259f9fe5df8a13d29 (diff) | |
download | ruby-d386a58f6f1865aaa35eda5af55cff3ff3cca4ca.tar.gz |
Merge bundler-2.2.0.rc.2
Diffstat (limited to 'spec/bundler/update/gems/fund_spec.rb')
-rw-r--r-- | spec/bundler/update/gems/fund_spec.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/bundler/update/gems/fund_spec.rb b/spec/bundler/update/gems/fund_spec.rb new file mode 100644 index 0000000000..6d7075b424 --- /dev/null +++ b/spec/bundler/update/gems/fund_spec.rb @@ -0,0 +1,29 @@ +# frozen_string_literal: true + +RSpec.describe "bundle update" do + before do + gemfile <<-G + source "#{file_uri_for(gem_repo1)}" + gem 'has_metadata' + gem 'has_funding', '< 2.0' + G + + bundle :install + end + + context "when listed gems are updated" do + before do + gemfile <<-G + source "#{file_uri_for(gem_repo1)}" + gem 'has_metadata' + gem 'has_funding' + G + + bundle :update, :all => true + end + + it "displays fund message" do + expect(out).to include("2 installed gems you directly depend on are looking for funding.") + end + end +end |