inline js spec
This commit is contained in:
parent
98ba9d7901
commit
ccdfe24b0b
2 changed files with 11 additions and 0 deletions
|
@ -54,4 +54,8 @@ describe "Builder" do
|
|||
it "should not build partial files" do
|
||||
File.exists?("#{@root_dir}/build/_partial.html").should be_false
|
||||
end
|
||||
|
||||
it "should minify inline javascript" do
|
||||
File.readlines("#{@root_dir}/build/inline-js.html").length.should == 9
|
||||
end
|
||||
end
|
7
spec/fixtures/sample/views/inline-js.haml
vendored
Normal file
7
spec/fixtures/sample/views/inline-js.haml
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
:javascript
|
||||
;(function() {
|
||||
this;
|
||||
should();
|
||||
all.be();
|
||||
on = { one: line };
|
||||
});
|
Loading…
Reference in a new issue