Skip to content

Commit

Permalink
updating travis tag to point to correct project. apply changes from @…
Browse files Browse the repository at this point in the history
…gcollazo to fix tests
  • Loading branch information
bartsqueezy committed Jan 6, 2014
1 parent 7ed492a commit d0a7da2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 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

Expand Down
19 changes: 14 additions & 5 deletions test/plugin_test.js
Expand Up @@ -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() {
Expand All @@ -16,12 +25,12 @@ describe('Plugin', function() {
});

it('should compile and produce valid result', function(done) {
var content = '<strong>{{weak}}</strong>';
var expected = '<strong>wat</strong>';
var content = '<strong>{{outlet}}</strong>';

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();
});
});
Expand Down

0 comments on commit d0a7da2

Please sign in to comment.