Skip to content

Commit

Permalink
Fix for Handlebars 2
Browse files Browse the repository at this point in the history
It contains `__exports__.VERSION` instead of `Handlebars.VERSION`.
So this assertion should be changed for Handlebars specific other than
`Handlebars.VERSION`.
  • Loading branch information
tricknotes committed Feb 11, 2015
1 parent 72a789e commit 1529d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/precompile_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def precompile!(rails_env)
contents = File.read(application_js_path)

assert_match /Ember\.VERSION/, contents, 'application.js should contain Ember.VERSION'
assert_match /Handlebars\.VERSION/, contents, 'applciation.js should contain Handlebars.VERSION'
assert_match /Handlebars\.VERSION|COMPILER_REVISION/, contents, 'applciation.js should contain Handlebars.VERSION'
end

def app_path
Expand Down

0 comments on commit 1529d5b

Please sign in to comment.