summaryrefslogtreecommitdiff
path: root/spec/bundler/update/gems/fund_spec.rb
blob: 6d7075b424123f41d249d384c4b943150ce64214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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