Skip to content

Instantly share code, notes, and snippets.

@selvagsz
Created May 1, 2014 14:18
Show Gist options
  • Save selvagsz/b00d2bafe1ae4ede5bc1 to your computer and use it in GitHub Desktop.
Save selvagsz/b00d2bafe1ae4ede5bc1 to your computer and use it in GitHub Desktop.
Unit testing - emberjs
import {SomeModel} from 'some/path/to/somemodel';
moduleFor("controller:somecontroller", "My Query in subject", {
subject: function(options, factory) {
return factory.create({
content: SomeModel.create()
});
}
});
test("test 1", function() {
var controller = this.subject();
/* ...
some stuff
...
*/
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment