|
31 | 31 |
|
32 | 32 | context "when gems include a fund URI" do
|
33 | 33 | it "displays the plural fund message after installing" do
|
34 |
| - install_gemfile <<-G |
35 |
| - source "#{file_uri_for(gem_repo2)}" |
| 34 | + install_gemfile <<-G, artifice: "compact_index" |
| 35 | + source "https://gem.repo2" |
36 | 36 | gem 'has_funding_and_other_metadata'
|
37 | 37 | gem 'has_funding'
|
38 | 38 | gem 'rack-obama'
|
|
42 | 42 | end
|
43 | 43 |
|
44 | 44 | it "displays the singular fund message after installing" do
|
45 |
| - install_gemfile <<-G |
46 |
| - source "#{file_uri_for(gem_repo2)}" |
| 45 | + install_gemfile <<-G, artifice: "compact_index" |
| 46 | + source "https://gem.repo2" |
47 | 47 | gem 'has_funding'
|
48 | 48 | gem 'rack-obama'
|
49 | 49 | G
|
|
58 | 58 | end
|
59 | 59 |
|
60 | 60 | it "does not display the plural fund message after installing" do
|
61 |
| - install_gemfile <<-G |
62 |
| - source "#{file_uri_for(gem_repo2)}" |
| 61 | + install_gemfile <<-G, artifice: "compact_index" |
| 62 | + source "https://gem.repo2" |
63 | 63 | gem 'has_funding_and_other_metadata'
|
64 | 64 | gem 'has_funding'
|
65 | 65 | gem 'rack-obama'
|
|
69 | 69 | end
|
70 | 70 |
|
71 | 71 | it "does not display the singular fund message after installing" do
|
72 |
| - install_gemfile <<-G |
73 |
| - source "#{file_uri_for(gem_repo2)}" |
| 72 | + install_gemfile <<-G, artifice: "compact_index" |
| 73 | + source "https://gem.repo2" |
74 | 74 | gem 'has_funding'
|
75 | 75 | gem 'rack-obama'
|
76 | 76 | G
|
|
81 | 81 |
|
82 | 82 | context "when gems do not include fund messages" do
|
83 | 83 | it "does not display any fund messages" do
|
84 |
| - install_gemfile <<-G |
85 |
| - source "#{file_uri_for(gem_repo2)}" |
| 84 | + install_gemfile <<-G, artifice: "compact_index" |
| 85 | + source "https://gem.repo2" |
86 | 86 | gem "activesupport"
|
87 | 87 | G
|
88 | 88 |
|
|
92 | 92 |
|
93 | 93 | context "when a dependency includes a fund message" do
|
94 | 94 | it "does not display the fund message" do
|
95 |
| - install_gemfile <<-G |
96 |
| - source "#{file_uri_for(gem_repo2)}" |
| 95 | + install_gemfile <<-G, artifice: "compact_index" |
| 96 | + source "https://gem.repo2" |
97 | 97 | gem 'gem_with_dependent_funding'
|
98 | 98 | G
|
99 | 99 |
|
|
110 | 110 | "funding_uri" => "https://example.com/also_has_funding/funding",
|
111 | 111 | }
|
112 | 112 | end
|
113 |
| - install_gemfile <<-G |
114 |
| - source "#{file_uri_for(gem_repo1)}" |
| 113 | + install_gemfile <<-G, artifice: "compact_index" |
| 114 | + source "https://gem.repo1" |
115 | 115 | gem 'also_has_funding', :git => '#{lib_path("also_has_funding-1.0")}'
|
116 | 116 | G
|
117 | 117 |
|
|
124 | 124 | "funding_uri" => "https://example.com/also_has_funding/funding",
|
125 | 125 | }
|
126 | 126 | end
|
127 |
| - install_gemfile <<-G |
128 |
| - source "#{file_uri_for(gem_repo1)}" |
| 127 | + install_gemfile <<-G, artifice: "compact_index" |
| 128 | + source "https://gem.repo1" |
129 | 129 | gem 'also_has_funding', :git => '#{lib_path("also_has_funding-1.0")}'
|
130 | 130 | G
|
131 | 131 |
|
|
134 | 134 | "funding_uri" => "https://example.com/also_has_funding/funding",
|
135 | 135 | }
|
136 | 136 | end
|
137 |
| - install_gemfile <<-G |
138 |
| - source "#{file_uri_for(gem_repo1)}" |
| 137 | + install_gemfile <<-G, artifice: "compact_index" |
| 138 | + source "https://gem.repo1" |
139 | 139 | gem 'also_has_funding', :git => '#{lib_path("also_has_funding-1.1")}'
|
140 | 140 | G
|
141 | 141 |
|
|
149 | 149 | }
|
150 | 150 | end
|
151 | 151 | gemfile <<-G
|
152 |
| - source "#{file_uri_for(gem_repo1)}" |
| 152 | + source "https://gem.repo1" |
153 | 153 | gem 'also_has_funding', :git => '#{lib_path("also_has_funding-1.0")}'
|
154 | 154 | G
|
155 | 155 |
|
156 |
| - bundle :install |
| 156 | + bundle :install, artifice: "compact_index" |
157 | 157 | expect(out).to include("1 installed gem you directly depend on is looking for funding.")
|
158 | 158 |
|
159 |
| - bundle :install |
| 159 | + bundle :install, artifice: "compact_index" |
160 | 160 | expect(out).to include("1 installed gem you directly depend on is looking for funding.")
|
161 | 161 | end
|
162 | 162 | end
|
|
0 commit comments