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
|
|
|
|
|
2021-07-07 01:07:29 -04:00
|
|
|
start_time = Time.now
|
|
|
|
|
|
|
|
bundle "lock"
|
|
|
|
|
2021-02-01 10:17:16 -05:00
|
|
|
duration = Time.now - start_time
|
|
|
|
|
2021-07-07 01:07:29 -04:00
|
|
|
expect(duration.to_f).to be < 12 # seconds
|
2021-02-01 10:17:16 -05:00
|
|
|
end
|
|
|
|
end
|