summaryrefslogtreecommitdiffstats
path: root/rubygem-actionpack-enable-test.patch
diff options
context:
space:
mode:
authorMohammed Morsi <mmorsi@redhat.com>2011-02-04 11:46:02 -0500
committerMohammed Morsi <mmorsi@redhat.com>2011-02-04 11:46:02 -0500
commit27692c1a1daba06093bba9f0c0a43f7e2289f86e (patch)
tree25f026e586252788e7a3661d7f19dc158ef40849 /rubygem-actionpack-enable-test.patch
parente8b4c1afac825b3a67b62d9b6e2a36e337ac439a (diff)
downloadrubygem-actionpack-27692c1a1daba06093bba9f0c0a43f7e2289f86e.tar.gz
rubygem-actionpack-27692c1a1daba06093bba9f0c0a43f7e2289f86e.tar.xz
rubygem-actionpack-27692c1a1daba06093bba9f0c0a43f7e2289f86e.zip
update to actionpack 3.0.3
Diffstat (limited to 'rubygem-actionpack-enable-test.patch')
-rw-r--r--rubygem-actionpack-enable-test.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/rubygem-actionpack-enable-test.patch b/rubygem-actionpack-enable-test.patch
new file mode 100644
index 0000000..d620f83
--- /dev/null
+++ b/rubygem-actionpack-enable-test.patch
@@ -0,0 +1,19 @@
+--- test/active_record_unit.rb.orig 2011-01-10 23:31:54.197506001 -0500
++++ test/active_record_unit.rb 2011-01-11 00:09:09.152505905 -0500
+@@ -13,12 +13,12 @@ end
+ # Try to grab AR
+ unless defined?(ActiveRecord) && defined?(Fixtures)
+ begin
+- PATH_TO_AR = "#{File.dirname(__FILE__)}/../../activerecord/lib"
+- raise LoadError, "#{PATH_TO_AR} doesn't exist" unless File.directory?(PATH_TO_AR)
+- $LOAD_PATH.unshift PATH_TO_AR
++ #PATH_TO_AR = "#{File.dirname(__FILE__)}/../../activerecord/lib"
++ #raise LoadError, "#{PATH_TO_AR} doesn't exist" unless File.directory?(PATH_TO_AR)
++ #$LOAD_PATH.unshift PATH_TO_AR
+ require 'active_record'
+ rescue LoadError => e
+- $stderr.print "Failed to load Active Record. Skipping Active Record assertion tests: #{e}"
++ #$stderr.print "Failed to load Active Record. Skipping Active Record assertion tests: #{e}"
+ ActiveRecordTestConnector.able_to_connect = false
+ end
+ end