aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/path_generation_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/path_generation_test.rb')
-rw-r--r--railties/test/path_generation_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/path_generation_test.rb b/railties/test/path_generation_test.rb
index d4dfa8e4a6..849b183b37 100644
--- a/railties/test/path_generation_test.rb
+++ b/railties/test/path_generation_test.rb
@@ -58,12 +58,14 @@ class PathGenerationTest < ActiveSupport::TestCase
Rails.logger = Logger.new nil
app = Class.new(Rails::Application) {
+ def self.name; "ScriptNameTestApp"; end
+
attr_accessor :controller
+
def initialize
super
app = self
@routes = TestSet.new ->(c) { app.controller = c }
- secrets.secret_key_base = "foo"
secrets.secret_token = "foo"
end
def app; routes; end