1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

inline js spec

This commit is contained in:
tdreyno 2009-09-21 10:11:22 -07:00
parent 98ba9d7901
commit ccdfe24b0b
2 changed files with 11 additions and 0 deletions

View file

@ -54,4 +54,8 @@ describe "Builder" do
it "should not build partial files" do it "should not build partial files" do
File.exists?("#{@root_dir}/build/_partial.html").should be_false File.exists?("#{@root_dir}/build/_partial.html").should be_false
end end
it "should minify inline javascript" do
File.readlines("#{@root_dir}/build/inline-js.html").length.should == 9
end
end end

View file

@ -0,0 +1,7 @@
:javascript
;(function() {
this;
should();
all.be();
on = { one: line };
});