To edit pages or tickets please login with username/password: aaf/aaf

Changeset 313

Show
Ignore:
Timestamp:
02/02/08 21:58:07 (5 months ago)
Author:
jk
Message:

to_param test for ferret_result, partial test

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/demo/app/views/searches/search.html.erb

    r245 r313  
    1414  <p><%= will_paginate @results %></p> 
    1515  <ul> 
    16     <% for result in @results -%> 
    17       <li><%= link_to result.title, content_path(result.id) %></li> 
    18     <% end -%> 
     16    <%= render :partial => @results -%> 
    1917  </ul> 
    2018  <p><%= will_paginate @results %></p> 
  • trunk/demo/test/unit/ferret_result_test.rb

    r310 r313  
    1717    assert_equal 'A useless description', fr.description # description now comes from DB 
    1818  end 
     19 
     20  def test_to_param 
     21    fr = ActsAsFerret::FerretResult.new 'Content', '1', 0.5, 1, :description => 'description from ferret index' 
     22    assert_equal '1', fr.to_param 
     23  end 
    1924end 

To edit pages or tickets please login with username/password: aaf/aaf