We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b6b70 commit e788c08Copy full SHA for e788c08
test/abstract_unit.rb
@@ -4,14 +4,7 @@
4
require 'active_record'
5
require 'action_controller/action_caching'
6
7
-FIXTURE_LOAD_PATH = File.join(File.dirname(__FILE__), 'fixtures')
8
-
9
10
-module ActionController
11
- class Base
12
- self.view_paths = FIXTURE_LOAD_PATH
13
- end
14
-end
+FIXTURE_LOAD_PATH = File.expand_path('../fixtures', __FILE__)
15
16
module RackTestUtils
17
def body_to_string(body)
test/caching_test.rb
@@ -24,6 +24,8 @@ class ActionCachingTestController < CachingController
24
rescue_from(ActiveRecord::RecordNotFound) { head :not_found }
25
end
26
27
+ self.view_paths = FIXTURE_LOAD_PATH
28
+
29
# Eliminate uninitialized ivar warning
30
before_action { @title = nil }
31
0 commit comments