When building the tests on CircleCI, all my tests fail with an error related to not finding the secret_key_base (see below)
I have also found this similar topic on circleCI, but the guy actually didn’t have problems with the secret_key_base, just with other environment variables.
My config/secrets.yml is not committed in my repository, and I have deployment scripts that had generated the secrets on my production infrastructure. I don’t know how this should be handled on CircleCI, I’m actually quite surprised this is not handled by default by circle (eg generating a random secret), or that nobody had the same problem.
I am using Ruby 2.3 and Rails 5. Maybe this is coming from those versions ?
The value of this variable doesn’t really matter I guess since it’s just for testing, so what should I do about it ?
*DEPRECATION WARNING: You didn’t set
secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from load at /home/ubuntu/MyJobGlasses/vendor/bundle/ruby/2.3.0/bin/rspec:22)
An error occurred in an after hook
NoMethodError: undefined method
original_path_set' for nil:NilClass occurred at /home/ubuntu/MyJobGlasses/vendor/bundle/ruby/2.3.0/gems/rspec-rails-3.1.0/lib/rspec/rails/view_rendering.rb:96:inblock (2 levels) in module:ViewRendering’