# File scripts/test-harvester.rb, line 155
    def test_split_ad2
      rules = Array.new
      rules.push(KeywordRule.new(["twhs"], {"property-type"=>'Townhouse'}))
      rules.push(RegexRule.new('(\d),(\d)[,&](\d)br', {"bed_1"=>'\1', "bed_2"=>'\2', "bed_3"=>'\3'}))
      
      ad = Ad.new("new tri-level Twhs w/d, pets ok. 1,2,3Br")
      rules.each do |r|
        ad.apply_rule(r)
      end
      
      items = ad.get_items
      
      # bed should be different for each ad, but property-type should apply to all
      assert_equal('1', items[1]['bed'])
      assert_equal('Townhouse', items[1]['property-type'])
      
      assert_equal('2', items[2]['bed'])
      assert_equal('Townhouse', items[2]['property-type'])
      
      assert_equal('3', items[3]['bed'])
      assert_equal('Townhouse', items[3]['property-type'])
    end