Skip to content
Mickael Daniel edited this page Jan 16, 2013 · 1 revision

test-fallbacks

generators config

when config("generators.test-framework") is set

I get the appropriate generator.options.

var generator = this.env.create('ember:model', {
  args: ['hey'],
  options: {
    generator: {
      'test-framework': 'jasmine'
    }
  }
});

assert.equal(generator.options['test-framework'], 'jasmine');

generator = new generators.Base({
  env: this.env,
  resolved: 'test',
  generator: {
    'test-framework': 'mocha'
  }
});

assert.equal(generator.options['test-framework'], 'mocha');
Clone this wiki locally