<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -139,6 +139,7 @@ module Kernel
   #   # This will now use the RSpec generator for tests
   #   $ ruby script/generate controller MyController
   def use_test(test_framework)
+    return unless Merb.env == 'test'
     raise &quot;use_test only supports :rspec and :test_unit currently&quot; unless 
       [:rspec, :test_unit].include?(test_framework.to_sym)
     Merb.generator_scope.delete(:rspec)</diff>
      <filename>lib/merb-core/core_ext/kernel.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,7 @@
 require File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;spec_helper&quot;)
 
+Merb.environment = 'test'
+
 describe &quot;Plugins&quot;, &quot;default GENERATOR_SCOPE&quot; do
   it &quot;should have :merb_default first&quot; do
     Merb.generator_scope.first.should == :merb_default</diff>
      <filename>spec/private/plugins/plugin_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>451c7857437a4084c00e5057fb6efd2092290342</id>
    </parent>
  </parents>
  <author>
    <name>Ezra Zygmuntowicz</name>
    <email>ez@engineyard.com</email>
  </author>
  <url>http://github.com/wycats/merb-core/commit/758a19603ad276a6e95cbaed00bd6b9b4182f0eb</url>
  <id>758a19603ad276a6e95cbaed00bd6b9b4182f0eb</id>
  <committed-date>2008-03-03T15:23:07-08:00</committed-date>
  <authored-date>2008-03-03T15:23:07-08:00</authored-date>
  <message>do not load test framework unless Merb.env == 'test'</message>
  <tree>cb8c87614cc74668b7d100af29a0165ded7d51ce</tree>
  <committer>
    <name>Ezra Zygmuntowicz</name>
    <email>ez@engineyard.com</email>
  </committer>
</commit>
