Tuesday, 20 August 2013

Mute jQuery Migrate in Ruby on Rails test environment

Mute jQuery Migrate in Ruby on Rails test environment

Our rails project receives a lot of JQMIGRATE message when running tests, eg:
JQMIGRATE: jQuery.fn.attr(selected) may use property instead of attribute
JQMIGRATE: jQuery.browser is deprecated
Obviously it would be good to fix them, but they seem to be due to other
gems anyway.
I've seen reference to jQuery.migrateMute = true, but not sure where to
include it, and more importantly, would like to mute in test environment
but not development. What's the best way?

No comments:

Post a Comment