diff --git a/README.md b/README.md index 428c0f8..87940c5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/gcollazo/ember-handlebars-brunch.png?branch=master)](https://travis-ci.org/gcollazo/ember-handlebars-brunch) +[![Build Status](https://travis-ci.org/bartsqueezy/ember-handlebars-brunch.png?branch=master)](https://travis-ci.org/bartsqueezy/ember-handlebars-brunch) ## Ember Handlebars for Brunch diff --git a/test/plugin_test.js b/test/plugin_test.js index 4589d9f..27fd874 100644 --- a/test/plugin_test.js +++ b/test/plugin_test.js @@ -4,7 +4,16 @@ describe('Plugin', function() { var plugin; beforeEach(function() { - plugin = new Plugin({}); + plugin = new Plugin({ + files: { + templates: { + precompile: true + } + }, + modules: { + wrapper: false + } + }); }); it('should be an object', function() { @@ -16,12 +25,12 @@ describe('Plugin', function() { }); it('should compile and produce valid result', function(done) { - var content = '{{weak}}'; - var expected = 'wat'; + var content = '{{outlet}}'; - plugin.compile(content, 'template.handlebars', function(error, data) { + plugin.compile(content, 'foo.handlebars', function(error, data) { expect(error).not.to.be.ok(); - expect(eval(data)({weak: 'wat'})).to.equal(expected); + expect(data).to.contain('outlet'); + expect(data).to.contain("Ember.TEMPLATES['foo']"); done(); }); });