一、执行rspec提示的错误
如执行:
rspec spec/requests/authentication_pages_spec.rb -e "signin with invalid information"
提示:
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from get at /home/johnlu/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/forwardable.rb:171)
解决办法:
在config/application.rb
中加入
config.secret_key_base = 'blipblapblup'
来源:https://github.com/rails-api/rails-api/issues/72