lundi 28 septembre 2020

Getting deprecated error when running tests, even tho the test results are good

❯ rails test The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java. Running via Spring preloader in process 4541 Run options: --seed 56928

Running:

/home/lcsmachado/.rvm/gems/ruby-2.7.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/helper.rb:355: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/lcsmachado/.rvm/gems/ruby-2.7.0/gems/sprockets-4.0.2/lib/sprockets/base.rb:118: warning: The called method []' is defined here ./home/lcsmachado/.rvm/gems/ruby-2.7.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/helper.rb:355: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/lcsmachado/.rvm/gems/ruby-2.7.0/gems/sprockets-4.0.2/lib/sprockets/base.rb:118: warning: The called method []' is defined here ........

Finished in 0.650968s, 13.8256 runs/s, 15.3617 assertions/s. 9 runs, 10 assertions, 0 failures, 0 errors, 0 skips

The test result is okay, but i don't know the cause of those errors messages, in my opinion it is on rails root files, so i prefer to not change then, but i'm actually learning rails and don't know much.

Aucun commentaire:

Enregistrer un commentaire