1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/bundler/realworld/slow_perf_spec.rb
2022-10-18 16:33:15 +09:00

33 lines
670 B
Ruby

# frozen_string_literal: true
require "spec_helper"
RSpec.describe "bundle install with complex dependencies", :realworld => true do
it "resolves quickly" do
gemfile <<-G
source 'https://rubygems.org'
gem "actionmailer"
gem "mongoid", ">= 0.10.2"
G
expect { bundle "lock" }.to take_less_than(18) # seconds
end
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
end