Skip to content
Browse files

to_s asset before passing to execjs

  • Loading branch information...
1 parent 25beca9 commit 21eb0548b0706bcbfe76f1e6568acc2e81a3be86 @josh josh committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_environment.rb
View
4 test/test_environment.rb
@@ -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.
Something went wrong with that request. Please try again.