entire system • Only focuses on the Object Under Test (or subject) • Isolates the subject to be able to test it • Can use “doubles” that stand in for the collaborators of the subject
in by passed variables', function() {! 2 Ember.I18n.translations = { loggedIn: "You are logged in as {{name}}" };! 3 ! 4 var view = createView("{{translate 'loggedIn' name='Tom'}}");! 5 appendView(view);! 6 ! 7 var renderedText = view.$().text();! 8 equal(renderedText, "You are logged in as Tom");! 9 });!