<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,7 +15,11 @@ class RspecControllerGenerator &lt; ControllerGenerator
       m.directory File.join('spec/helpers', class_path)
       m.directory File.join('spec/views', class_path, file_name)
 
-      @default_file_extension = &quot;html.erb&quot;
+			if Rails::VERSION::STRING &lt; &quot;2.0.0&quot;
+        @default_file_extension = &quot;rhtml&quot;
+      else
+        @default_file_extension = &quot;html.erb&quot;
+      end
 
       # Controller spec, class, and helper.
       m.template 'controller_spec.rb',</diff>
      <filename>generators/rspec_controller/rspec_controller_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,8 +30,13 @@ class RspecScaffoldGenerator &lt; Rails::Generator::NamedBase
       @controller_class_name = &quot;#{@controller_class_nesting}::#{@controller_class_name_without_nesting}&quot;
     end
     
-    @resource_generator = &quot;scaffold&quot;
-    @default_file_extension = &quot;html.erb&quot;
+    if Rails::VERSION::STRING &lt; &quot;2.0.0&quot;
+      @resource_generator = &quot;scaffold_resource&quot;
+      @default_file_extension = &quot;rhtml&quot;
+		else
+      @resource_generator = &quot;scaffold&quot;
+      @default_file_extension = &quot;html.erb&quot;
+    end
     
     if ActionController::Base.respond_to?(:resource_action_separator)
       @resource_edit_path = &quot;/edit&quot;</diff>
      <filename>generators/rspec_scaffold/rspec_scaffold_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -177,7 +177,9 @@ module Spec
           # allowing Controller Examples to run in two modes, freely switching
           # from context to context.
           def render(options=nil, deprecated_status_or_extra_options=nil, &amp;block)
-            deprecated_status_or_extra_options ||= {}
+            if ::Rails::VERSION::STRING &gt;= '2.0.0' &amp;&amp; deprecated_status_or_extra_options.nil?
+              deprecated_status_or_extra_options = {}
+            end
               
             unless block_given?
               unless integrate_views?</diff>
      <filename>lib/spec/rails/example/controller_example_group.rb</filename>
    </modified>
    <modified>
      <diff>@@ -35,6 +35,15 @@ module Spec
         # cookies in examples using the same API with which you set and read
         # them in controllers.
         #
+        # == Examples (Rails &gt;= 1.2.6)
+        #
+        #   cookies[:user_id] = '1234'
+        #   get :index
+        #   assigns[:user].id.should == '1234'
+        #
+        #   post :login
+        #   cookies[:login].expires.should == 1.week.from_now
+        #
         # == Examples (Rails 2.0 &gt; 2.2)
         #
         #   cookies[:user_id] = {:value =&gt; '1234', :expires =&gt; 1.minute.ago}</diff>
      <filename>lib/spec/rails/example/functional_example_group.rb</filename>
    </modified>
    <modified>
      <diff>@@ -131,9 +131,11 @@ require 'controller_spec_controller'
         get 'action_which_gets_cookie', :expected =&gt; &quot;cookie value&quot;
       end
       
-      it &quot;should support a Hash value&quot; do
-        cookies[:cookie_key] = {'value' =&gt; 'cookie value', 'path' =&gt; '/not/default'}
-        get 'action_which_gets_cookie', :expected =&gt; {'value' =&gt; 'cookie value', 'path' =&gt; '/not/default'}
+      if Rails::VERSION::STRING &gt;= &quot;2.0.0&quot;
+        it &quot;should support a Hash value&quot; do
+          cookies[:cookie_key] = {'value' =&gt; 'cookie value', 'path' =&gt; '/not/default'}
+          get 'action_which_gets_cookie', :expected =&gt; {'value' =&gt; 'cookie value', 'path' =&gt; '/not/default'}
+        end
       end
       
     end</diff>
      <filename>spec/spec/rails/example/controller_spec_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -26,17 +26,19 @@ module Spec
             end
           end
           
-          it &quot;should accept a Hash value&quot; do
-            cookies = CookiesProxy.new(self)
-            cookies['key'] = { :value =&gt; 'value', :expires =&gt; expiration = 1.hour.from_now, :path =&gt; path = '/path' }
-            get :index
-            if ::Rails::VERSION::STRING &gt;= &quot;2.3&quot;
-              cookies['key'].should == 'value'
-            else
-              cookies['key'].should == ['value']
-              cookies['key'].value.should == ['value']
-              cookies['key'].expires.should == expiration
-              cookies['key'].path.should == path
+          if ::Rails::VERSION::STRING &gt;= &quot;2.0.0&quot;
+            it &quot;should accept a Hash value&quot; do
+              cookies = CookiesProxy.new(self)
+              cookies['key'] = { :value =&gt; 'value', :expires =&gt; expiration = 1.hour.from_now, :path =&gt; path = '/path' }
+              get :index
+              if ::Rails::VERSION::STRING &gt;= &quot;2.3&quot;
+                cookies['key'].should == 'value'
+              else
+                cookies['key'].should == ['value']
+                cookies['key'].value.should == ['value']
+                cookies['key'].expires.should == expiration
+                cookies['key'].path.should == path
+              end
             end
           end
             
@@ -55,17 +57,19 @@ module Spec
             end
           end
 
-          it &quot;should accept a Hash value&quot; do
-            example_cookies = CookiesProxy.new(self)
-            example_cookies[:key] = { :value =&gt; 'value', :expires =&gt; expiration = 1.hour.from_now, :path =&gt; path = '/path' }
-            get :index
-            if ::Rails::VERSION::STRING &gt;= &quot;2.3&quot;
-              example_cookies[:key].should == 'value'
-            else
-              example_cookies[:key].should == ['value']
-              example_cookies[:key].value.should == ['value']
-              example_cookies[:key].expires.should == expiration
-              example_cookies[:key].path.should == path
+          if ::Rails::VERSION::STRING &gt;= &quot;2.0.0&quot;
+            it &quot;should accept a Hash value&quot; do
+              example_cookies = CookiesProxy.new(self)
+              example_cookies[:key] = { :value =&gt; 'value', :expires =&gt; expiration = 1.hour.from_now, :path =&gt; path = '/path' }
+              get :index
+              if ::Rails::VERSION::STRING &gt;= &quot;2.3&quot;
+                example_cookies[:key].should == 'value'
+              else
+                example_cookies[:key].should == ['value']
+                example_cookies[:key].value.should == ['value']
+                example_cookies[:key].expires.should == expiration
+                example_cookies[:key].path.should == path
+              end
             end
           end
 </diff>
      <filename>spec/spec/rails/example/cookies_proxy_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -149,16 +149,18 @@ describe &quot;A view that includes a partial using :collection and :spacer_template&quot;
 
 end
 
-describe &quot;A view that includes a partial using an array as partial_path&quot;, :type =&gt; :view do
-  before(:each) do
-    renderable_object = Object.new
-    renderable_object.stub!(:name).and_return(&quot;Renderable Object&quot;)
-    assigns[:array] = [renderable_object]
-  end
+if Rails::VERSION::MAJOR &gt;= 2
+  describe &quot;A view that includes a partial using an array as partial_path&quot;, :type =&gt; :view do
+    before(:each) do
+      renderable_object = Object.new
+      renderable_object.stub!(:name).and_return(&quot;Renderable Object&quot;)
+      assigns[:array] = [renderable_object]
+    end
 
-  it &quot;should render the array passed through to render_partial without modification&quot; do
-    render &quot;view_spec/template_with_partial_with_array&quot; 
-    response.body.should match(/^Renderable Object$/)
+    it &quot;should render the array passed through to render_partial without modification&quot; do
+      render &quot;view_spec/template_with_partial_with_array&quot; 
+      response.body.should match(/^Renderable Object$/)
+    end
   end
 end
 </diff>
      <filename>spec/spec/rails/example/view_spec_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,7 +30,11 @@ require File.dirname(__FILE__) + '/../../../spec_helper'
   
     it &quot;should match an rjs template&quot; do
       xhr :post, 'some_action'
-      response.should render_template('render_spec/some_action')
+      if Rails::VERSION::STRING &lt; &quot;2.0.0&quot;
+        response.should render_template('render_spec/some_action.rjs')
+      else
+        response.should render_template('render_spec/some_action')
+      end
     end
   
     it &quot;should match a partial template (simple path)&quot; do</diff>
      <filename>spec/spec/rails/matchers/render_template_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>876f611fb026bea04c89346755d62de93e6e5050</id>
    </parent>
  </parents>
  <author>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-rails/commit/07a554091cb23a0227ecf4333c00cccd82dad66c</url>
  <id>07a554091cb23a0227ecf4333c00cccd82dad66c</id>
  <committed-date>2009-01-08T12:19:05-08:00</committed-date>
  <authored-date>2009-01-08T12:19:05-08:00</authored-date>
  <message>Revert &quot;eliminate all the rails &lt;= 2 conditionals&quot;

This reverts commit 876f611fb026bea04c89346755d62de93e6e5050.

(keeping that commit in the 1.2-dev branch)</message>
  <tree>cdae213f0f0628b7e99ab4435d645ff35e505fcd</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </committer>
</commit>
