text: import EmberView from 'ember-views/views/view';
  import run from 'ember-metal/run_loop';
  
  var view;
  
  QUnit.module('views/view/transition_to_deprecation', {
    setup: function() {
      view = EmberView.create();
    },
    teardown: function() {
      run(view, 'destroy');
    }
  });
  
  test('deprecates when calling transitionTo', function() {
    expect(1);
  
    view = EmberView.create();
  
    expectDeprecation(function() {
      view.transitionTo('preRender');
    }, '');
  });
  
  test("doesn't deprecate when calling _transitionTo", function() {
    expect(1);
  
    view = EmberView.create();
    view._transitionTo('preRender');
    ok(true);
  });
  