升级到 rails 5 后无法使用 rspec 和 rollbar。
- 创建一个 Rails 4 应用程序
- 升级 gemfile 以使用 rails 5
- 尝试添加 rollbar gem/support
标准配置/environment.rb:
# Load the Rails application.
require_relative 'application'
# Initialize the Rails application.
Rails.application.initialize!
运行 rspec 时出错:
An error occurred while loading {path to specific spec file}
Failure/Error: require File.expand_path('../../config/environment', __FILE__)
RuntimeError:
can't modify frozen Array
# ./config/environment.rb:6:in `<top (required)>'
# ./spec/rails_helper.rb:5:in `<top (required)>'
...
No examples found.