Getting "ruby-2.4.2/lib/ruby/2.4.0/forwardable.rb:157 forwarding to private method" while running rspec

296 Views Asked by At

I have upgraded my application from Ruby 2.2.3 to Ruby 2.4.2, Rails version is 5.1.4. I am able to upgrade the application but when I run 'bundle exec rspec' getting too many lines similar to

..... "ruby-2.4.2/lib/ruby/2.4.0/forwardable.rb:157 forwarding to private method" ...

I came across the link which explains the reason for these lines: Forwardable breaks on private methods in ruby 2.4 but I didn't get any solution to remove them.

Can anyone guide me how can I remove these lines ?

0

There are 0 best solutions below