diff options
author | Ben A Morgan <ben@benmorgan.io> | 2014-11-22 21:26:36 -0800 |
---|---|---|
committer | Ben A Morgan <ben@benmorgan.io> | 2014-11-22 21:26:36 -0800 |
commit | 4e33a3f7c46d5f7f0fabc429c7998f2ae45beef6 (patch) | |
tree | 589667ca119b32a106f7d856000cba4b1001bda6 /spec/bundler/dsl_spec.rb | |
parent | 40122bca553aa03c7718977e9a2460edc96e5b20 (diff) | |
download | bundler-4e33a3f7c46d5f7f0fabc429c7998f2ae45beef6.tar.gz |
it can bundle groups of gems with git
Diffstat (limited to 'spec/bundler/dsl_spec.rb')
-rw-r--r-- | spec/bundler/dsl_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/bundler/dsl_spec.rb b/spec/bundler/dsl_spec.rb index 831a01f035..80da59f919 100644 --- a/spec/bundler/dsl_spec.rb +++ b/spec/bundler/dsl_spec.rb @@ -136,6 +136,23 @@ describe Bundler::Dsl do expect { subject.gem(:foo) }. to raise_error(Bundler::GemfileError, /You need to specify gem names as Strings. Use 'gem "foo"' instead/) end + end + + context 'can bundle groups of gems with' do + # git 'https://github.com/rails/rails.git' do + # gem 'railties' + # gem 'action_pack' + # gem 'active_model' + # end + describe '#git' do + it 'from a single repo' do + rails_gems = ['railties', 'action_pack', 'active_model'] + example = subject.git 'https://github.com/rails/rails.git' do + rails_gems.each { |rails_gem| subject.send :gem, rails_gem } + end + expect(subject.dependencies.map(&:name)).to match_array rails_gems + end + end end |