diff options
author | Eric Lindvall <eric@5stops.com> | 2010-03-15 16:33:10 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-03-17 00:22:13 -0700 |
commit | 3744fcb50a5036ab138e79349eb0c4b431837955 (patch) | |
tree | 8aa5b293bdb10a98001385814376f52156e2754c | |
parent | e8e442ec59291cda3bcbc31add3e9c69ae162d76 (diff) | |
download | bundler-3744fcb50a5036ab138e79349eb0c4b431837955.tar.gz |
Add a failing test for a locked git-based gem without a gemspec.
-rw-r--r-- | spec/runtime/environment_rb_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/runtime/environment_rb_spec.rb b/spec/runtime/environment_rb_spec.rb index c7a3ba0c2f..880c1ad306 100644 --- a/spec/runtime/environment_rb_spec.rb +++ b/spec/runtime/environment_rb_spec.rb @@ -3,16 +3,27 @@ require File.expand_path('../../spec_helper', __FILE__) describe "environment.rb file" do before :each do system_gems "rack-1.0.0" + build_git "no-gemspec", :gemspec => false install_gemfile <<-G source "file://#{gem_repo1}" gem "activesupport", "2.3.5" + gem "no-gemspec", '1.0', :git => "#{lib_path('no-gemspec-1.0')}" G bundle :lock end + it "works with gems from git that don't have gemspecs" do + run <<-R, :lite_runtime => true + require 'no-gemspec' + puts NOGEMSPEC + R + + out.should == "1.0" + end + it "does not pull in system gems" do run <<-R, :lite_runtime => true require 'rubygems' @@ -48,4 +59,5 @@ describe "environment.rb file" do out.should == "rack is not part of the bundle. Add it to Gemfile." end + end |