This is an example of a test against the "Thing" model. Perhaps I have set things up wrong. However, the only thing that's not working is "classname" in the resulting xml from "--reporter xml" argument. So I'm guessing that I might not be entirely wrong, but perhaps just missing a callback.
buster.spec.expose();
describe('ThingModel', function(run) {
// 'models' maps to 'src/js/models' within 'requirejs-config.js' ...
require(['models/thing'], function(Thing) {
run(function() {
it('should load', function() {
var thing = new Thing();
thing.set('test_name', 'test_value');
expect(thing.get('test_name')).toEqual('test_value');
});
});
});
});
As I said, everything works fine aside for the "classname".
Thanks!
On Sunday, August 4, 2013 1:33:42 AM UTC-4, Mark Peterson wrote: