Permalink
Browse files

delete old file

  • Loading branch information...
1 parent 9368092 commit 56d4c8b0cf27db782c40c2aa9b18d3bbfc9a06c4 @alexch alexch committed Aug 13, 2011
Showing with 0 additions and 37 deletions.
  1. +0 −37 doc/externalsspec.txt
View
@@ -1,37 +0,0 @@
-describe Erector::Externals do
- class Dinner < Erector::Widget
- external :js, "/dinner.js"
- def content
- span "dinner"
- widget Dessert
- end
- end
-
- class Dessert < Erector::Widget
- external :js, "/dessert.js"
- external :css, "/dessert.css"
- def content
- span "dessert"
- end
- end
-
- it "#render_with_externals sticks the externals for all its rendered sub-widgets at the end of the output buffer" do
- s = Dinner.new.render_with_externals
- s.to_s.should ==
- "<span>dinner</span>" +
- "<span>dessert</span>" +
- "<link href=\"/dessert.css\" media=\"all\" rel=\"stylesheet\" type=\"text/css\" />" +
- "<script src=\"/dinner.js\" type=\"text/javascript\"></script>" +
- "<script src=\"/dessert.js\" type=\"text/javascript\"></script>"
- end
-
- it "#render_externals returns externals for all rendered sub-widgets to an output buffer" do
- widget = Dinner.new
- widget.to_s
- widget.render_externals.to_s.should ==
- "<link href=\"/dessert.css\" media=\"all\" rel=\"stylesheet\" type=\"text/css\" />" +
- "<script src=\"/dinner.js\" type=\"text/javascript\"></script>" +
- "<script src=\"/dessert.js\" type=\"text/javascript\"></script>"
- end
-end
-

0 comments on commit 56d4c8b

Please sign in to comment.