<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,6 @@
 class Post &lt; ActiveRecord::Base
   has_friendly_id :title, :use_slug =&gt; true
+  
+  named_scope :published, :conditions =&gt; { :published =&gt; true }
+  
 end</diff>
      <filename>test/models/post.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,6 +14,7 @@ ActiveRecord::Schema.define(:version =&gt; 1) do
   create_table &quot;posts&quot;, :force =&gt; true do |t|
     t.column &quot;title&quot;, &quot;string&quot;
     t.column &quot;content&quot;, &quot;text&quot;
+    t.column &quot;published&quot;, &quot;boolean&quot;, :default =&gt; false
     t.column &quot;created_at&quot;, &quot;datetime&quot;
     t.column &quot;updated_at&quot;, &quot;datetime&quot;
   end</diff>
      <filename>test/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,7 @@ class SluggedModelTest &lt; Test::Unit::TestCase
       Post.delete_all
       Person.delete_all
       Slug.delete_all
-      @post = Post.new :title =&gt; &quot;Test post&quot;, :content =&gt; &quot;Test content&quot;
+      @post = Post.new :title =&gt; &quot;Test post&quot;, :content =&gt; &quot;Test content&quot;, :published =&gt; true
       @post.save!
     end
 
@@ -236,7 +236,7 @@ class SluggedModelTest &lt; Test::Unit::TestCase
     context &quot;when using an array as the find argument&quot; do
 
       setup do
-        @post2 = Post.create!(:title =&gt; &quot;another post&quot;, :content =&gt; &quot;more content&quot;)
+        @post2 = Post.create!(:title =&gt; &quot;another post&quot;, :content =&gt; &quot;more content&quot;, :published =&gt; true)
       end
 
       should &quot;return results when passed an array of non-friendly ids&quot; do
@@ -246,6 +246,10 @@ class SluggedModelTest &lt; Test::Unit::TestCase
       should &quot;return results when passed an array of friendly ids&quot; do
         assert_equal 2, Post.find([@post.friendly_id, @post2.friendly_id]).size
       end
+      
+      should &quot;return results when searching using a named scope&quot; do
+        assert_equal 2, Post.published.find([@post.id, @post2.id]).size
+      end
 
       should &quot;return results when passed a mixed array of friendly and non-friendly ids&quot; do
         assert_equal 2, Post.find([@post.friendly_id, @post2.id]).size</diff>
      <filename>test/slugged_model_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1da53991d44ad791ad4699a2748f1db7dfc302b6</id>
    </parent>
  </parents>
  <author>
    <name>Norman Clarke</name>
    <email>norman@randomba.org</email>
  </author>
  <url>http://github.com/norman/friendly_id/commit/3157dbc1b1673c0c2b5a9c2c040617772e6dc6ed</url>
  <id>3157dbc1b1673c0c2b5a9c2c040617772e6dc6ed</id>
  <committed-date>2009-06-30T12:42:41-07:00</committed-date>
  <authored-date>2009-06-30T12:42:41-07:00</authored-date>
  <message>Added a test that searches for an array of id's using a named scope to try to
reproduce the bug report in Lighthouse #35.</message>
  <tree>60e973e3d20c324e6819da78a12f3db1ea3c4364</tree>
  <committer>
    <name>Norman Clarke</name>
    <email>norman@randomba.org</email>
  </committer>
</commit>
