2021-02-01 10:17:16 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require "spec_helper"
|
|
|
|
|
|
|
|
RSpec.describe "bundle install with complex dependencies", :realworld => true do
|
|
|
|
it "resolves quickly" do
|
2021-07-07 01:07:29 -04:00
|
|
|
gemfile <<-G
|
2021-02-01 10:17:16 -05:00
|
|
|
source 'https://rubygems.org'
|
|
|
|
|
|
|
|
gem "actionmailer"
|
|
|
|
gem "mongoid", ">= 0.10.2"
|
|
|
|
G
|
|
|
|
|
2022-10-05 08:16:57 -04:00
|
|
|
expect { bundle "lock" }.to take_less_than(18) # seconds
|
2021-02-01 10:17:16 -05:00
|
|
|
end
|
2022-10-18 02:24:42 -04:00
|
|
|
|
|
|
|
it "resolves quickly (case 2)" do
|
|
|
|
gemfile <<-G
|
|
|
|
source "https://rubygems.org"
|
|
|
|
|
|
|
|
gem 'metasploit-erd'
|
|
|
|
gem 'rails-erd'
|
|
|
|
gem 'yard'
|
|
|
|
|
|
|
|
gem 'coveralls'
|
|
|
|
gem 'rails'
|
|
|
|
gem 'simplecov'
|
|
|
|
gem 'rspec-rails'
|
|
|
|
G
|
|
|
|
|
|
|
|
expect { bundle "lock" }.to take_less_than(18) # seconds
|
|
|
|
end
|
2021-02-01 10:17:16 -05:00
|
|
|
end
|