spec/models/yml_content_spec.rb in milksteak-0.0.9 vs spec/models/yml_content_spec.rb in milksteak-0.0.10
- old
+ new
@@ -54,10 +54,10 @@
it "should render obj as markdown when specified as format" do
f = File.open(File.join(File.dirname(__FILE__), "../fixtures/objs/sample_obj.yml"), "r")
File.should_receive(:new).with("/tmp/milk_site/objs/home.yml", "r").and_return f
obj = TestYmlObject.load("home")
obj.data["format"] = "markdown"
- obj.render.should == "<p>This is a Test Object</p>"
+ obj.render.should == "<p>This is a Test Object</p>\n"
end
it "should return empty string if trying to render a obj that doesn't exist" do
FileUtils.stub(:mkdir).and_return true
empty = TestYmlObject.render("home")