<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/rails_root/config/environments/test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1 @@
-require 'shoulda/rails'
+require 'shoulda/rails' if RAILS_ENV == 'test'</diff>
      <filename>rails/init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@ The test directory contains the following files and subdirectories:
 
 * rails_root - contains the stripped down rails application that the tests run against.  The rails root contains:
 ** the models, controllers, and views defined under app/
-** the sqlite3.rb environment file
+** the test.rb environment file
 ** a migration file for each model
 ** a shoulda initializer that simulates loading the plugin but without relying on vendor/plugins
 * fixtures - contain the sample DB data for each model
@@ -14,7 +14,7 @@ The test directory contains the following files and subdirectories:
 * unit - model tests for each of the models under rails_root/app
 * other - tests for the shoulda contexts, should statements, and assertions
 * test_helper.rb - responsible for initializing the test environment
-** sets the rails_env to sqlite3
+** sets the rails_env to test
 ** sets the rails_root
 ** runs all the migrations against the in-memory sqlite3 db
 ** adds some magic to load the right fixture files</diff>
      <filename>test/README</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-sqlite3:
+test:
   :adapter: sqlite3
   # :dbfile: db/sqlite3.db
   :dbfile: &quot;:memory:&quot;</diff>
      <filename>test/rails_root/config/database.yml</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 require 'fileutils'
 # Load the environment
-ENV['RAILS_ENV'] = 'sqlite3'
+ENV['RAILS_ENV'] = 'test'
 
 rails_root = File.dirname(__FILE__) + '/rails_root'
 </diff>
      <filename>test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>test/rails_root/config/environments/sqlite3.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>5edb7b85b80e4231c265b95207e3d45b180b8a9b</id>
    </parent>
  </parents>
  <author>
    <name>Lawrence Pit</name>
    <email>lawrence.pit@gmail.com</email>
  </author>
  <url>http://github.com/thoughtbot/shoulda/commit/28b2ffec6e2c43e24dfa537540df962a30db1469</url>
  <id>28b2ffec6e2c43e24dfa537540df962a30db1469</id>
  <committed-date>2009-01-19T08:29:54-08:00</committed-date>
  <authored-date>2009-01-16T17:43:37-08:00</authored-date>
  <message>When in a rails environment, only load shoulda when RAILS_ENV equals 'test' [#134]</message>
  <tree>55260a38c75d60e372da86f7649e1159d2a6a60b</tree>
  <committer>
    <name>Ryan McGeary</name>
    <email>ryanongit@mcgeary.org</email>
  </committer>
</commit>
