Skip to content

Commit d125b6f

Browse files
committed
secret_key_base is required to run controller specs
1 parent f7d8994 commit d125b6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
module RSpecRails
55
class Application < ::Rails::Application
6+
self.config.secret_key_base = 'ASecretString' if config.respond_to? :secret_key_base
67
end
78
end
89

0 commit comments

Comments
 (0)