           return true
 
         it '*Restore upgrade style', () ->
-          MDl.envConfig.patchers.blaze.setUpgradeStyle(upgradeStyle)
+          MDl.autoUpgrade.setUpgradeStyle(upgradeStyle)
           return true

      describe 'Issue #1', () ->
        upgradeStyle = null
        it '*Clear upgrade style', () ->
          upgradeStyle = MDl.envConfig.patchers.blaze.getUpgradeStyle()
          MDl.envConfig.patchers.blaze.setUpgradeStyle('none')
          return true

        it 'Button should exist', () ->

          return true

        it 'Button should have ripple effect after tab switch with auto-upgrading', (done) ->
          MDl.autoUpgrade.setUpgradeStyle('fullUpgrade')
          tpl.$('.tabbutton[for=2]').click()
          expect(Session.get('tab')).to.equal(2)
          # Give some time for Blaze to render the template.
