Recently I have updated Ruby(2.5.3 to 2.7.1) and Ruby on rails(5.2.2 to 6.1.1) version.
After that when I run rspec, I got this error:
Failure/Error: require File.expand_path("../../config/environment", __FILE__)
NoMethodError:
undefined method `new' for BigDecimal:Class
# ./config/application.rb:11:in `<top (required)>'
# ./config/environment.rb:2:in `<top (required)>'
An error occurred in spec_helper.rb How to debug spec_helper's code which is:
require File.expand_path("../../config/environment", __FILE__)
how to resolve the above error?
I'm not sure which gem/file trying to do BigDecimal.new