<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -30,7 +30,13 @@ module SMSFu
     end
   end
 
-  RAILS_CONFIG_ROOT = defined?(RAILS_ROOT) ? &quot;#{RAILS_ROOT}/config&quot; : &quot;#{File.dirname(__FILE__)}/../templates&quot; unless defined?(RAILS_CONFIG_ROOT)
+  RAILS_CONFIG_ROOT = defined?(Rails) ?
+          Rails.env == 'test' ?
+            &quot;#{File.dirname(__FILE__)}/../templates&quot; :
+            &quot;#{RAILS_ROOT}/config&quot; :
+          RAILS_ENV == 'test' ?
+            &quot;#{File.dirname(__FILE__)}/../templates&quot; :
+            &quot;#{RAILS_ROOT}/config&quot;
   @config     ||= YAML::load(File.open(&quot;#{RAILS_CONFIG_ROOT}/sms_fu.yml&quot;))
   @@carriers  ||= @config['carriers'] 
   @@from_address = @config['config']['from_address']</diff>
      <filename>lib/sms_fu.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,7 @@ require 'rubygems'
 
 require 'actionmailer'
 
+RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
 RAILS_ENV = 'test' unless defined?(RAILS_ENV)
 RAILS_DEFAULT_LOGGER = Logger.new(StringIO.new) unless defined?(RAILS_DEFAULT_LOGGER)
 </diff>
      <filename>test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e010096f2a9c1f5ddecbad998051b210ba47b3dd</id>
    </parent>
  </parents>
  <author>
    <name>pboling</name>
    <email>peter.boling@peterboling.com</email>
  </author>
  <url>http://github.com/brendanlim/sms-fu/commit/8ce7858e829bb409febe5da6e47fa7d2a691e3d2</url>
  <id>8ce7858e829bb409febe5da6e47fa7d2a691e3d2</id>
  <committed-date>2009-10-22T12:37:50-07:00</committed-date>
  <authored-date>2009-10-22T12:37:50-07:00</authored-date>
  <message>improved setting of RAILS_CONFIG_ROOT</message>
  <tree>3303d67305f691c5dedc28f1e46758f7277ed5b3</tree>
  <committer>
    <name>pboling</name>
    <email>peter.boling@peterboling.com</email>
  </committer>
</commit>
