<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,8 +1,11 @@
 module ActionView #:nodoc:
   class TemplateFinder #:nodoc:
     def initialize_with_desert_plugins(*args)
-      initialize_without_desert_plugins *args
-
+      begin
+        initialize_without_desert_plugins *args
+      rescue ActionView::TemplateFinder::InvalidViewPath
+        # Desert will add the missing paths next
+      end
       Desert::Manager.plugins.reverse.each do |plugin|
         append_view_path plugin.templates_path
       end</diff>
      <filename>lib/desert/plugin_templates/2.1.0/action_view.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,6 +25,10 @@ module Desert
       def rails_version_is_below_220?
         current_rails_version_matches?('&lt;2.2.0')
       end
+      
+      def rails_version_is_below_230?
+        current_rails_version_matches?('&lt;2.3.0')
+      end
     end
   end
 end</diff>
      <filename>lib/desert/version_checker.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,31 +3,25 @@ require File.expand_path(&quot;#{File.dirname(__FILE__)}/../rails_spec_helper&quot;)
 module ActionController
   describe Base, &quot;#render&quot; do
     include ActionController::UrlWriter
-
     before do
-      # TODO: fix the pending tests.  This block references Cgi stuff that is not the same across Rails versions.
-      #ENV[&quot;REQUEST_URI&quot;] = super_spiffy_path
-      #ENV[&quot;REQUEST_METHOD&quot;] = &quot;GET&quot;
-      #ENV[&quot;REMOTE_ADDR&quot;] = &quot;127.0.0.0&quot;
-      #ENV[&quot;HTTP_HOST&quot;] = 'test.host'
-      #cgi = CGI.new
-      #@request = ActionController::CgiRequest.new(cgi, {})
-      #@response = ActionController::CgiResponse.new(cgi)
-      #@response.template
-      #
-      #@controller = ::Spiffy::SpiffyController.new
-      #@controller.request = @request
-      #@controller.response = @response
+      ENV[&quot;REQUEST_URI&quot;] = super_spiffy_path
+      ENV[&quot;REQUEST_METHOD&quot;] = &quot;GET&quot;
+      ENV[&quot;REMOTE_ADDR&quot;] = &quot;127.0.0.0&quot;
+      ENV[&quot;HTTP_HOST&quot;] = 'test.host'
+      @request = ActionController::TestRequest.new
+      @response = ActionController::TestResponse.new
+
+      @controller = ::Spiffy::SpiffyController.new
+      @controller.request = @request
+      @controller.response = @response
     end
 
     it &quot;gives priority to the rails app&quot; do
-      pending
       @controller.process(@request, @response, :render, :template =&gt; &quot;spiffy/spiffy/spiffy&quot;)
       @response.body.should == &quot;From App&quot;
     end
 
     it &quot;gives priority to plugins added later&quot; do
-      pending
       @controller.process(@request, @response, :render, :template =&gt; &quot;spiffy/spiffy/acts_as_spiffy&quot;)
       @response.body.should == &quot;From Super Spiffy&quot;
     end</diff>
      <filename>spec/rails_root/spec/desert/action_controller_integration_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,11 +14,14 @@ module ActionMailer
       end
     end
   end
-  describe &quot;view_paths&quot; do
-    it &quot;should be memoized&quot; do
-      ActionMailer::Base.view_paths = []
-      SpiffyMailer.deliver_spiffy_mail
-      ActionMailer::Base.view_paths.should_not be_nil
+
+  if !Desert::VersionChecker.rails_version_is_below_220?
+    describe &quot;view_paths&quot; do
+      it &quot;should be memoized&quot; do
+        ActionMailer::Base.view_paths = []
+        SpiffyMailer.deliver_spiffy_mail
+        ActionMailer::Base.view_paths.should_not be_nil
+      end
     end
   end
 end</diff>
      <filename>spec/rails_root/spec/desert/action_mailer_integration_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0186c737f66d9ce1c124ce76f961fe7d05eb2972</id>
    </parent>
  </parents>
  <author>
    <name>pivotal</name>
    <email>pivotal@albion.flood.pivotallabs.com</email>
  </author>
  <url>http://github.com/pivotal/desert/commit/87075e6d72a9c85c9d4148b7156ef575db8c39c2</url>
  <id>87075e6d72a9c85c9d4148b7156ef575db8c39c2</id>
  <committed-date>2009-08-26T16:28:06-07:00</committed-date>
  <authored-date>2009-08-26T16:28:06-07:00</authored-date>
  <message>joemoore -- plugin view loding fixed for Rails 2.1.0.  Fixed failing tests due to Rails version incompatibilities</message>
  <tree>64444557853a1f822325e36d7fb9ba29db1e551c</tree>
  <committer>
    <name>pivotal</name>
    <email>pivotal@albion.flood.pivotallabs.com</email>
  </committer>
</commit>
