<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -380,6 +380,32 @@ describe &quot;Bundler::CLI&quot; do
     end
   end
 
+  describe &quot;bundling all but certain environments&quot; do
+    before(:each) do
+      build_manifest &lt;&lt;-Gemfile
+        clear_sources
+        source &quot;file://#{gem_repo1}&quot;
+        gem &quot;extlib&quot;
+        gem &quot;very-simple&quot;, :except =&gt; :test
+        gem &quot;rack&quot;, :except =&gt; :server
+      Gemfile
+
+      %w(doc environment.rb gems specifications).each do |f|
+        FileUtils.rm_rf(tmp_gem_path.join(f))
+      end
+    end
+
+    it &quot;install gems for environments specified in --only line&quot; do
+      Dir.chdir(bundled_app) do
+        gem_command :bundle, &quot;--only test&quot;
+        bundled_app('vendor', 'gems', 'environment.rb').should have_load_paths(bundled_app(&quot;vendor&quot;, &quot;gems&quot;),
+          &quot;extlib-0.9.12&quot; =&gt; %w(lib),
+          &quot;rack-0.9.1&quot; =&gt; %w(bin lib)
+        )
+      end
+    end
+  end
+
   describe &quot;caching gems to the bundle&quot; do
     before(:each) do
       build_manifest &lt;&lt;-Gemfile</diff>
      <filename>spec/bundler/cli_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>90b261f803947427783a482fd08873fd27bc213f</id>
    </parent>
  </parents>
  <author>
    <name>Yehuda Katz</name>
    <email>wycats@Yehuda-Katz.local</email>
  </author>
  <url>http://github.com/jweiss/bundler/commit/711a0cbbb3557df550abb20a79941fa52f07d69b</url>
  <id>711a0cbbb3557df550abb20a79941fa52f07d69b</id>
  <committed-date>2009-11-09T15:20:57-08:00</committed-date>
  <authored-date>2009-11-09T15:20:57-08:00</authored-date>
  <message>Adding a spec for :except with --only</message>
  <tree>d272b3e6a27082e236ac902d73c0e4833a08ae96</tree>
  <committer>
    <name>Yehuda Katz</name>
    <email>wycats@Yehuda-Katz.local</email>
  </committer>
</commit>
