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

Changeset 147

Show
Ignore:
Timestamp:
02/08/07 21:02:59 (2 years ago)
Author:
jk
Message:

failing test case for ticket #88

Files:

Legend:

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

    r60 r147  
    4747  end 
    4848 
     49  def test_query_for_record 
     50    assert_match /SharedIndex1/, shared_index1s(:first).query_for_record.to_s 
     51  end 
     52 
    4953  def test_destroy 
    5054    result = SharedIndex1.find_by_contents("first OR another", :models => :all) 
     
    5357    result = SharedIndex1.find_by_contents("first OR another", :models => :all) 
    5458    assert_equal 3, result.size 
     59    shared_index2s(:first).destroy 
     60    result = SharedIndex1.find_by_contents("first OR another", :models => :all) 
     61    assert_equal 2, result.size 
    5562  end 
    5663 
  • trunk/demo/test/unit/shared_index2_test.rb

    r60 r147  
    22 
    33class SharedIndex2Test < Test::Unit::TestCase 
    4   fixtures :shared_index2s 
     4  fixtures :shared_index2s, :shared_index1s 
    55 
    6   # Replace this with your real tests. 
    7   def test_truth 
    8     assert true 
     6  def setup 
     7    SharedIndex1.rebuild_index(SharedIndex2) 
     8  end 
     9 
     10  def test_query_for_record 
     11    assert_match /SharedIndex2/, shared_index2s(:first).query_for_record.to_s 
    912  end 
    1013end 

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