File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,14 +31,6 @@ def self.required_files_message
3131
3232 sig { override . returns ( T ::Array [ DependencyFile ] ) }
3333 def fetch_files
34- unless allow_beta_ecosystems?
35- raise Dependabot ::DependencyFileNotFound . new (
36- nil ,
37- "Sbt support is currently in beta. Enable the beta ecosystems experiment to use it " \
38- "(for example, run bin/dry-run.rb --enable-beta-ecosystems)."
39- )
40- end
41-
4234 fetched_files = T . let ( [ ] , T ::Array [ DependencyFile ] )
4335
4436 fetched_files << build_sbt
Original file line number Diff line number Diff line change 3434
3535 before do
3636 allow ( file_fetcher_instance ) . to receive ( :commit ) . and_return ( "sha" )
37- Dependabot ::Experiments . register ( :enable_beta_ecosystems , true )
3837 end
3938
4039 it_behaves_like "a dependency file fetcher"
204203 . to match_array ( %w( build.sbt project/build.properties core/build.sbt ) )
205204 end
206205 end
207-
208- context "when beta ecosystems are not enabled" do
209- before do
210- Dependabot ::Experiments . register ( :enable_beta_ecosystems , false )
211- end
212-
213- it "raises a DependencyFileNotFound error" do
214- expect { file_fetcher_instance . files }
215- . to raise_error ( Dependabot ::DependencyFileNotFound )
216- end
217- end
218206end
You can’t perform that action at this time.
0 commit comments