test coffee support

This commit is contained in:
tdreyno 2010-09-05 21:07:18 -07:00
parent 5bd9f0071a
commit b3ee656a0e
2 changed files with 8 additions and 0 deletions

View file

@ -23,6 +23,11 @@ describe "Builder" do
File.read("#{@root_dir}/build/index.html").should include("Comment in layout") File.read("#{@root_dir}/build/index.html").should include("Comment in layout")
end end
it "should build coffee files" do
File.exists?("#{@root_dir}/build/javascripts/coffee_test.js").should be_true
File.read("#{@root_dir}/build/javascripts/coffee_test.js").should include("Array.prototype.slice")
end
it "should build haml files" do it "should build haml files" do
File.exists?("#{@root_dir}/build/index.html").should be_true File.exists?("#{@root_dir}/build/index.html").should be_true
File.read("#{@root_dir}/build/index.html").should include("<h1>Welcome</h1>") File.read("#{@root_dir}/build/index.html").should include("<h1>Welcome</h1>")

View file

@ -0,0 +1,3 @@
# Splats:
race = (winner, runners...) ->
print winner, runners