[DRE-commits] [SCM] ruby-activerecord-3.2.git branch, master, updated. debian/3.2.6-2-6-g90102ae

Antonio Terceiro terceiro at debian.org
Thu Jan 3 14:44:42 UTC 2013


The following commit has been merged in the master branch:
commit 07ed4000423c1c436d9af2ee7edf8046eea6ee8d
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Thu Jan 3 11:14:37 2013 -0300

    Remove test file patch since standalone packages do not include tests

diff --git a/debian/patches/3-2-dynamic_finder_injection.patch b/debian/patches/3-2-dynamic_finder_injection.patch
index 30af5a4..f2e5121 100644
--- a/debian/patches/3-2-dynamic_finder_injection.patch
+++ b/debian/patches/3-2-dynamic_finder_injection.patch
@@ -27,29 +27,6 @@ index b6b8e24..f15d0b7 100644
            relation = options.any? ? scoped(options) : scoped
            relation.send :find_by_attributes, match, attribute_names, *arguments, &block
          elsif match.instantiator?
-diff --git a/test/cases/finder_test.rb b/test/cases/finder_test.rb
-index 5d72e35..77ca3b5 100644
---- a/test/cases/finder_test.rb
-+++ b/test/cases/finder_test.rb
-@@ -15,6 +15,18 @@ require 'models/toy'
- class FinderTest < ActiveRecord::TestCase
-   fixtures :companies, :topics, :entrants, :developers, :developers_projects, :posts, :comments, :accounts, :authors, :customers, :categories, :categorizations
- 
-+  def test_find_by_id_with_hash
-+    assert_raises(ActiveRecord::StatementInvalid) do
-+      Post.find_by_id(:limit => 1)
-+    end
-+  end
-+
-+  def test_find_by_title_and_id_with_hash
-+    assert_raises(ActiveRecord::StatementInvalid) do
-+      Post.find_by_title_and_id('foo', :limit => 1)
-+    end
-+  end
-+
-   def test_find
-     assert_equal(topics(:first).title, Topic.find(1).title)
-   end
 -- 
 1.7.10.2 (Apple Git-33)
 

-- 
ruby-activerecord-3.2.git



More information about the Pkg-ruby-extras-commits mailing list