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

Changeset 151

Show
Ignore:
Timestamp:
02/09/07 19:05:00 (2 years ago)
Author:
jk
Message:

unit test for #69

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/demo/test/unit/content_test.rb

    r142 r151  
    2828  end 
    2929   
    30   def test_truth 
    31     assert_kind_of Content, contents(:first) 
     30  def test_ticket_69 
     31    content = Content.create(:title => 'aksjeselskap test', 
     32                             :description => 'content about various norwegian companies. A.s. Haakon, à
     33mot HÃ¥ndverksenter A/S, Øye Trelast AS') 
     34 
     35    # these still fail: 'A\S', 'AS' 
     36    [ '"A.s. Haakon"', 'A.s. Haakon', 'à
     37mot A/S', 'A/S' ].each do |query| 
     38      assert_equal content, Content.find_by_contents(query).first, query 
     39    end 
    3240  end 
    3341 

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