Closed brandonparsons closed 10 years ago
See the integration tests in this example app: https://github.com/ugisozols/ember-simple-auth-rails-demo. Of course you could also mock AJAX responses with e.g. sinon or so. For e.g. routes unit tests I think it's best to simple setup a session with fake data to authenticate the session for testing, see http://ember-simple-auth.simplabs.com/api.html#Ember-SimpleAuth-Session-setup.
Also please ask questions like this on stack overflow. GitHub should really only be used for issues.
How exactly do you go about testing this within an Ember app?
Is there a way to fake server calls, or just force it to log in with fake data?