Changeset 949

Show
Ignore:
Timestamp:
11/11/07 08:05:18 (1 year ago)
Author:
jimfree..@gmail.com
Message:

Added specs for multiple links per line.

Files:

Legend:

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

    r946 r949  
    9191  end 
    9292 
     93  it "should convert multiple [[page links]] to URLs when the Page exists" do 
     94    # pending "Needs implementation"     
     95    Page.stub!(:find_by_title).and_return(true) 
     96    @page.converted_body = "[[Some Page]] and [[Some Page]]" 
     97    @page.to_html.should == %q{<a href="/pages/Some+Page">Some Page</a> and <a href="/pages/Some+Page">Some Page</a>} 
     98  end 
     99 
    93100  it "should convert [[page links]] to URLs when the Page exists" do 
    94101    Page.stub!(:find_by_title).and_return(false)