<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -227,4 +227,38 @@ describe &quot;#load_enclosing_resources for resources_controller_for :tags, :in =&gt; [
     Ardes::ResourcesController::Specification.should_receive(:new).with('comment', :singleton =&gt; false, :as =&gt; 'taggable').ordered
     @controller.send(:load_enclosing_resources)
   end
-end
\ No newline at end of file
+end
+
+# specing some branching BC code
+# find_filter dissapeared from edge, but we want to support it for 2.0-stable
+describe &quot;ResourcesController.load_enclosing_resources_filter_exists?&quot; do
+  before do
+    @klass = Class.new(ActionController::Base)
+  end
+  
+  describe &quot;when :find_filter defined&quot; do
+    before do
+      class&lt;&lt;@klass
+        def find_filter; end
+      end
+    end
+    
+    it &quot;should call :find_filter with :load_enclosing_resources&quot; do
+      @klass.should_receive(:find_filter).with(:load_enclosing_resources)
+      @klass.send(:load_enclosing_resources_filter_exists?)
+    end
+  end
+  
+  describe &quot;when :find_filter not defined&quot; do
+    before do
+      class&lt;&lt;@klass
+        undef_method(:find_filter) rescue nil
+      end
+    end
+        
+    it &quot;should call :filter_chain&quot; do
+      @klass.should_receive(:filter_chain).and_return([])
+      @klass.send(:load_enclosing_resources_filter_exists?)
+    end
+  end
+end</diff>
      <filename>spec/specs/load_enclosing_resources_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>spec/specs/load_enclosing_resources_filter_exists_spec.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>51276f8edee2243f360598fb3e26c24407564684</id>
    </parent>
  </parents>
  <author>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </author>
  <url>http://github.com/ianwhite/resources_controller/commit/c7f42a91e5dde7af880a5f3e8c73aa278125ace3</url>
  <id>c7f42a91e5dde7af880a5f3e8c73aa278125ace3</id>
  <committed-date>2008-04-27T13:57:54-07:00</committed-date>
  <authored-date>2008-04-27T13:57:54-07:00</authored-date>
  <message>Moving specs around</message>
  <tree>865e1d573d0f7f8631d0c5bc705f796701123699</tree>
  <committer>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </committer>
</commit>
