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

Show
Ignore:
Timestamp:
06/13/08 10:26:38 (5 months ago)
Author:
jk
Message:

fixing #220

Files:

Legend:

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

    r324 r350  
    1111  def test_truth 
    1212    assert_kind_of Comment, comments(:first) 
     13  end 
     14   
     15  def test_issue_220_index_false_as_false 
     16    c = Comment.new :content => false 
     17    assert_equal false, c.content 
     18    assert_equal 'false', c.content_for_field_name(:content) 
     19    assert_equal 'false', c.to_doc[:content] 
     20    c.save 
     21    assert_equal c, Comment.find_with_ferret('content:false').first 
    1322  end 
    1423 

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