Changeset 937
- Timestamp:
- 11/10/07 21:05:15 (1 year ago)
- Files:
-
- apps/merki/trunk/spec/models/page_spec.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
apps/merki/trunk/spec/models/page_spec.rb
r936 r937 17 17 18 18 def textile_text 19 "h1. " 19 %q{ 20 h1. My Page 21 22 *This is important!* 23 24 * foo 25 * bar 26 * baz 27 } 28 end 29 30 def textile_text_as_html 31 RedCloth.new(textile_text).to_html 20 32 end 21 33 end … … 61 73 @page.should_not be_valid 62 74 end 75 76 it "should have a converted_body" do 77 pending "Needs implementation" 78 @page.converted_body = "converted to textile" 79 @page.converted_body.should == "converted to textile" 80 end 81 82 it "should use textile to convert body to converted_body" do 83 pending "Needs implementation" 84 @page.body = textile_text 85 @page.converted_body.should == textile_text_as_html 86 end 63 87 64 88 it "should be valid with all attributes" do
