specs/content_spec.rb in gumdrop-0.7.2 vs specs/content_spec.rb in gumdrop-0.7.3
- old
+ new
@@ -5,9 +5,29 @@
describe Gumdrop::Content do
# before do
# @ho= Gumdrop::HashObject.new one:"ONE", two:"TWO", three:'THREE'
# end
+ it "should process the content through all the engines specified in the file ext" do
+
+ path= File.join ".", "specs", "fixtures", 'Gumdrop'
+ site= Gumdrop::Site.new path
+
+ path= File.join ".", "specs", "fixtures", 'test.js.erb.coffee'
+ content= Gumdrop::Content.new( path, site )
+
+ path= File.join ".", "specs", "fixtures", 'expected-test.js'
+ expected= File.read path
+
+ content= content.render()
+
+ # puts content
+ # puts expected
+
+ content.must_equal expected
+
+ end
+
# it "can be created with no arguments" do
# Gumdrop::HashObject.new.must_be_instance_of Gumdrop::HashObject
# end
# it "can be used as a standard hash" do
\ No newline at end of file