This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

to_s asset before passing to execjs

  • Loading branch information...
josh committed Jul 3, 2012
1 parent 25beca9 commit 21eb0548b0706bcbfe76f1e6568acc2e81a3be86
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_environment.rb
View
@@ -60,13 +60,13 @@ def self.test(name, &block)
test "eco templates" do
asset = @env["goodbye.jst"]
- context = ExecJS.compile(asset)
+ context = ExecJS.compile(asset.to_s)
assert_equal "Goodbye world\n", context.call("JST['goodbye']", :name => "world")
end
test "ejs templates" do
asset = @env["hello.jst"]
- context = ExecJS.compile(asset)
+ context = ExecJS.compile(asset.to_s)
assert_equal "hello: world\n", context.call("JST['hello']", :name => "world")
end

0 comments on commit 21eb054

Please sign in to comment.