test coffee support
This commit is contained in:
parent
5bd9f0071a
commit
b3ee656a0e
2 changed files with 8 additions and 0 deletions
|
@ -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>")
|
||||||
|
|
3
spec/fixtures/sample/views/javascripts/coffee_test.js.coffee
vendored
Normal file
3
spec/fixtures/sample/views/javascripts/coffee_test.js.coffee
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Splats:
|
||||||
|
race = (winner, runners...) ->
|
||||||
|
print winner, runners
|
Loading…
Reference in a new issue