emberjs/ember.js — pull request #538 by lukemelia (2012-02-24 19:02:20+00:00)
Title: Add a test to document behavior of goToState passing current state

We found ourselves asking what the behavior of goToState was when passed the current state. In sproutcore-statecharts, it exits and enters the child state.

It wasn't immediately obvious from the ember-states code, so I checked to see if there was a test that documented it, and there wasn't one. This pull request adds that test.