aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/subscriber_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/subscriber_test.rb')
-rw-r--r--activerecord/test/cases/subscriber_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/test/cases/subscriber_test.rb b/activerecord/test/cases/subscriber_test.rb
index 5328d4468b..3d7a8f5bab 100644
--- a/activerecord/test/cases/subscriber_test.rb
+++ b/activerecord/test/cases/subscriber_test.rb
@@ -1,3 +1,6 @@
+railties_path = File.expand_path('../../../../railties/lib', __FILE__)
+$:.unshift(railties_path) if File.directory?(railties_path) && !$:.include?(railties_path)
+
require "cases/helper"
require "models/developer"
require "rails/subscriber/test_helper"
@@ -39,4 +42,4 @@ class SubscriberTest < ActiveSupport::TestCase
assert_match /CACHE/, @logger.logged(:debug).last
assert_match /SELECT .*?FROM .?developers.?/, @logger.logged(:debug).last
end
-end \ No newline at end of file
+end