Changeset 937

Show
Ignore:
Timestamp:
11/10/07 21:05:15 (1 year ago)
Author:
iv..@gweezlebur.com
Message:

Merki: more page specs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • apps/merki/trunk/spec/models/page_spec.rb

    r936 r937  
    1717   
    1818  def textile_text 
    19     "h1. " 
     19    %q{ 
     20h1. 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 
    2032  end 
    2133end 
     
    6173    @page.should_not be_valid 
    6274  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 
    6387 
    6488  it "should be valid with all attributes" do