feedtools 0.2.18 → 0.2.19
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +28 -0
- data/lib/feed_tools.rb +328 -63
- data/lib/feed_tools/feed.rb +767 -764
- data/lib/feed_tools/feed_item.rb +684 -625
- data/lib/feed_tools/helpers/debug_helper.rb +37 -0
- data/lib/feed_tools/helpers/feed_tools_helper.rb +45 -41
- data/lib/feed_tools/helpers/generic_helper.rb +164 -0
- data/lib/feed_tools/helpers/retrieval_helper.rb +36 -0
- data/rakefile +298 -2
- data/test/unit/amp_test.rb +70 -69
- data/test/unit/atom_test.rb +91 -9
- data/test/unit/cache_test.rb +30 -11
- data/test/unit/cdf_test.rb +6 -4
- data/test/unit/encoding_test.rb +99 -0
- data/test/unit/generation_test.rb +3 -40
- data/test/unit/helper_test.rb +66 -6
- data/test/unit/interface_test.rb +34 -0
- data/test/unit/itunes_test.rb +19 -0
- data/test/unit/nonstandard_test.rb +22 -4
- data/test/unit/rdf_test.rb +19 -0
- data/test/unit/rss_test.rb +137 -43
- metadata +18 -8
- data/lib/feed_tools/vendor/builder.rb +0 -15
- data/lib/feed_tools/vendor/builder/blankslate.rb +0 -55
- data/lib/feed_tools/vendor/builder/xmlbase.rb +0 -144
- data/lib/feed_tools/vendor/builder/xmlevents.rb +0 -65
- data/lib/feed_tools/vendor/builder/xmlmarkup.rb +0 -299
data/test/unit/amp_test.rb
CHANGED
@@ -3,12 +3,13 @@ require 'feed_tools'
|
|
3
3
|
require 'feed_tools/helpers/feed_tools_helper'
|
4
4
|
|
5
5
|
class AmpTest < Test::Unit::TestCase
|
6
|
-
include FeedToolsHelper
|
6
|
+
include FeedTools::FeedToolsHelper
|
7
7
|
|
8
8
|
def setup
|
9
|
-
FeedTools.
|
10
|
-
FeedTools.
|
11
|
-
|
9
|
+
FeedTools.reset_configurations
|
10
|
+
FeedTools.configurations[:tidy_enabled] = false
|
11
|
+
FeedTools.configurations[:feed_cache] = "FeedTools::DatabaseFeedCache"
|
12
|
+
FeedTools::FeedToolsHelper.default_local_path =
|
12
13
|
File.expand_path(
|
13
14
|
File.expand_path(File.dirname(__FILE__)) + '/../feeds')
|
14
15
|
end
|
@@ -417,7 +418,7 @@ class AmpTest < Test::Unit::TestCase
|
|
417
418
|
end
|
418
419
|
|
419
420
|
def test_amp_tidy_01
|
420
|
-
FeedTools.tidy_enabled = true
|
421
|
+
FeedTools.configurations[:tidy_enabled] = true
|
421
422
|
assert_equal(true, FeedTools.tidy_enabled?,
|
422
423
|
"Could not enable tidyhtml, library may be missing.")
|
423
424
|
with_feed(:from_file => 'wellformed/amp/amp01.xml') { |feed|
|
@@ -426,7 +427,7 @@ class AmpTest < Test::Unit::TestCase
|
|
426
427
|
end
|
427
428
|
|
428
429
|
def test_amp_tidy_02
|
429
|
-
FeedTools.tidy_enabled = true
|
430
|
+
FeedTools.configurations[:tidy_enabled] = true
|
430
431
|
assert_equal(true, FeedTools.tidy_enabled?,
|
431
432
|
"Could not enable tidyhtml, library may be missing.")
|
432
433
|
with_feed(:from_file => 'wellformed/amp/amp02.xml') { |feed|
|
@@ -435,7 +436,7 @@ class AmpTest < Test::Unit::TestCase
|
|
435
436
|
end
|
436
437
|
|
437
438
|
def test_amp_tidy_03
|
438
|
-
FeedTools.tidy_enabled = true
|
439
|
+
FeedTools.configurations[:tidy_enabled] = true
|
439
440
|
assert_equal(true, FeedTools.tidy_enabled?,
|
440
441
|
"Could not enable tidyhtml, library may be missing.")
|
441
442
|
with_feed(:from_file => 'wellformed/amp/amp03.xml') { |feed|
|
@@ -444,7 +445,7 @@ class AmpTest < Test::Unit::TestCase
|
|
444
445
|
end
|
445
446
|
|
446
447
|
def test_amp_tidy_04
|
447
|
-
FeedTools.tidy_enabled = true
|
448
|
+
FeedTools.configurations[:tidy_enabled] = true
|
448
449
|
assert_equal(true, FeedTools.tidy_enabled?,
|
449
450
|
"Could not enable tidyhtml, library may be missing.")
|
450
451
|
with_feed(:from_file => 'wellformed/amp/amp04.xml') { |feed|
|
@@ -453,7 +454,7 @@ class AmpTest < Test::Unit::TestCase
|
|
453
454
|
end
|
454
455
|
|
455
456
|
def test_amp_tidy_05
|
456
|
-
FeedTools.tidy_enabled = true
|
457
|
+
FeedTools.configurations[:tidy_enabled] = true
|
457
458
|
assert_equal(true, FeedTools.tidy_enabled?,
|
458
459
|
"Could not enable tidyhtml, library may be missing.")
|
459
460
|
with_feed(:from_file => 'wellformed/amp/amp05.xml') { |feed|
|
@@ -462,7 +463,7 @@ class AmpTest < Test::Unit::TestCase
|
|
462
463
|
end
|
463
464
|
|
464
465
|
def test_amp_tidy_06
|
465
|
-
FeedTools.tidy_enabled = true
|
466
|
+
FeedTools.configurations[:tidy_enabled] = true
|
466
467
|
assert_equal(true, FeedTools.tidy_enabled?,
|
467
468
|
"Could not enable tidyhtml, library may be missing.")
|
468
469
|
with_feed(:from_file => 'wellformed/amp/amp06.xml') { |feed|
|
@@ -471,7 +472,7 @@ class AmpTest < Test::Unit::TestCase
|
|
471
472
|
end
|
472
473
|
|
473
474
|
def test_amp_tidy_07
|
474
|
-
FeedTools.tidy_enabled = true
|
475
|
+
FeedTools.configurations[:tidy_enabled] = true
|
475
476
|
assert_equal(true, FeedTools.tidy_enabled?,
|
476
477
|
"Could not enable tidyhtml, library may be missing.")
|
477
478
|
with_feed(:from_file => 'wellformed/amp/amp07.xml') { |feed|
|
@@ -480,7 +481,7 @@ class AmpTest < Test::Unit::TestCase
|
|
480
481
|
end
|
481
482
|
|
482
483
|
def test_amp_tidy_08
|
483
|
-
FeedTools.tidy_enabled = true
|
484
|
+
FeedTools.configurations[:tidy_enabled] = true
|
484
485
|
assert_equal(true, FeedTools.tidy_enabled?,
|
485
486
|
"Could not enable tidyhtml, library may be missing.")
|
486
487
|
with_feed(:from_file => 'wellformed/amp/amp08.xml') { |feed|
|
@@ -489,7 +490,7 @@ class AmpTest < Test::Unit::TestCase
|
|
489
490
|
end
|
490
491
|
|
491
492
|
def test_amp_tidy_09
|
492
|
-
FeedTools.tidy_enabled = true
|
493
|
+
FeedTools.configurations[:tidy_enabled] = true
|
493
494
|
assert_equal(true, FeedTools.tidy_enabled?,
|
494
495
|
"Could not enable tidyhtml, library may be missing.")
|
495
496
|
with_feed(:from_file => 'wellformed/amp/amp09.xml') { |feed|
|
@@ -498,7 +499,7 @@ class AmpTest < Test::Unit::TestCase
|
|
498
499
|
end
|
499
500
|
|
500
501
|
def test_amp_tidy_10
|
501
|
-
FeedTools.tidy_enabled = true
|
502
|
+
FeedTools.configurations[:tidy_enabled] = true
|
502
503
|
assert_equal(true, FeedTools.tidy_enabled?,
|
503
504
|
"Could not enable tidyhtml, library may be missing.")
|
504
505
|
with_feed(:from_file => 'wellformed/amp/amp10.xml') { |feed|
|
@@ -507,7 +508,7 @@ class AmpTest < Test::Unit::TestCase
|
|
507
508
|
end
|
508
509
|
|
509
510
|
def test_amp_tidy_11
|
510
|
-
FeedTools.tidy_enabled = true
|
511
|
+
FeedTools.configurations[:tidy_enabled] = true
|
511
512
|
assert_equal(true, FeedTools.tidy_enabled?,
|
512
513
|
"Could not enable tidyhtml, library may be missing.")
|
513
514
|
with_feed(:from_file => 'wellformed/amp/amp11.xml') { |feed|
|
@@ -516,7 +517,7 @@ class AmpTest < Test::Unit::TestCase
|
|
516
517
|
end
|
517
518
|
|
518
519
|
def test_amp_tidy_12
|
519
|
-
FeedTools.tidy_enabled = true
|
520
|
+
FeedTools.configurations[:tidy_enabled] = true
|
520
521
|
assert_equal(true, FeedTools.tidy_enabled?,
|
521
522
|
"Could not enable tidyhtml, library may be missing.")
|
522
523
|
with_feed(:from_file => 'wellformed/amp/amp12.xml') { |feed|
|
@@ -525,7 +526,7 @@ class AmpTest < Test::Unit::TestCase
|
|
525
526
|
end
|
526
527
|
|
527
528
|
def test_amp_tidy_13
|
528
|
-
FeedTools.tidy_enabled = true
|
529
|
+
FeedTools.configurations[:tidy_enabled] = true
|
529
530
|
assert_equal(true, FeedTools.tidy_enabled?,
|
530
531
|
"Could not enable tidyhtml, library may be missing.")
|
531
532
|
with_feed(:from_file => 'wellformed/amp/amp13.xml') { |feed|
|
@@ -534,7 +535,7 @@ class AmpTest < Test::Unit::TestCase
|
|
534
535
|
end
|
535
536
|
|
536
537
|
def test_amp_tidy_14
|
537
|
-
FeedTools.tidy_enabled = true
|
538
|
+
FeedTools.configurations[:tidy_enabled] = true
|
538
539
|
assert_equal(true, FeedTools.tidy_enabled?,
|
539
540
|
"Could not enable tidyhtml, library may be missing.")
|
540
541
|
with_feed(:from_file => 'wellformed/amp/amp14.xml') { |feed|
|
@@ -543,7 +544,7 @@ class AmpTest < Test::Unit::TestCase
|
|
543
544
|
end
|
544
545
|
|
545
546
|
def test_amp_tidy_15
|
546
|
-
FeedTools.tidy_enabled = true
|
547
|
+
FeedTools.configurations[:tidy_enabled] = true
|
547
548
|
assert_equal(true, FeedTools.tidy_enabled?,
|
548
549
|
"Could not enable tidyhtml, library may be missing.")
|
549
550
|
with_feed(:from_file => 'wellformed/amp/amp15.xml') { |feed|
|
@@ -552,7 +553,7 @@ class AmpTest < Test::Unit::TestCase
|
|
552
553
|
end
|
553
554
|
|
554
555
|
def test_amp_tidy_16
|
555
|
-
FeedTools.tidy_enabled = true
|
556
|
+
FeedTools.configurations[:tidy_enabled] = true
|
556
557
|
assert_equal(true, FeedTools.tidy_enabled?,
|
557
558
|
"Could not enable tidyhtml, library may be missing.")
|
558
559
|
with_feed(:from_file => 'wellformed/amp/amp16.xml') { |feed|
|
@@ -561,7 +562,7 @@ class AmpTest < Test::Unit::TestCase
|
|
561
562
|
end
|
562
563
|
|
563
564
|
def test_amp_tidy_17
|
564
|
-
FeedTools.tidy_enabled = true
|
565
|
+
FeedTools.configurations[:tidy_enabled] = true
|
565
566
|
assert_equal(true, FeedTools.tidy_enabled?,
|
566
567
|
"Could not enable tidyhtml, library may be missing.")
|
567
568
|
with_feed(:from_file => 'wellformed/amp/amp17.xml') { |feed|
|
@@ -570,7 +571,7 @@ class AmpTest < Test::Unit::TestCase
|
|
570
571
|
end
|
571
572
|
|
572
573
|
def test_amp_tidy_18
|
573
|
-
FeedTools.tidy_enabled = true
|
574
|
+
FeedTools.configurations[:tidy_enabled] = true
|
574
575
|
assert_equal(true, FeedTools.tidy_enabled?,
|
575
576
|
"Could not enable tidyhtml, library may be missing.")
|
576
577
|
with_feed(:from_file => 'wellformed/amp/amp18.xml') { |feed|
|
@@ -579,7 +580,7 @@ class AmpTest < Test::Unit::TestCase
|
|
579
580
|
end
|
580
581
|
|
581
582
|
def test_amp_tidy_19
|
582
|
-
FeedTools.tidy_enabled = true
|
583
|
+
FeedTools.configurations[:tidy_enabled] = true
|
583
584
|
assert_equal(true, FeedTools.tidy_enabled?,
|
584
585
|
"Could not enable tidyhtml, library may be missing.")
|
585
586
|
with_feed(:from_file => 'wellformed/amp/amp19.xml') { |feed|
|
@@ -588,7 +589,7 @@ class AmpTest < Test::Unit::TestCase
|
|
588
589
|
end
|
589
590
|
|
590
591
|
def test_amp_tidy_20
|
591
|
-
FeedTools.tidy_enabled = true
|
592
|
+
FeedTools.configurations[:tidy_enabled] = true
|
592
593
|
assert_equal(true, FeedTools.tidy_enabled?,
|
593
594
|
"Could not enable tidyhtml, library may be missing.")
|
594
595
|
with_feed(:from_file => 'wellformed/amp/amp20.xml') { |feed|
|
@@ -597,7 +598,7 @@ class AmpTest < Test::Unit::TestCase
|
|
597
598
|
end
|
598
599
|
|
599
600
|
def test_amp_tidy_21
|
600
|
-
FeedTools.tidy_enabled = true
|
601
|
+
FeedTools.configurations[:tidy_enabled] = true
|
601
602
|
assert_equal(true, FeedTools.tidy_enabled?,
|
602
603
|
"Could not enable tidyhtml, library may be missing.")
|
603
604
|
with_feed(:from_file => 'wellformed/amp/amp21.xml') { |feed|
|
@@ -606,7 +607,7 @@ class AmpTest < Test::Unit::TestCase
|
|
606
607
|
end
|
607
608
|
|
608
609
|
def test_amp_tidy_22
|
609
|
-
FeedTools.tidy_enabled = true
|
610
|
+
FeedTools.configurations[:tidy_enabled] = true
|
610
611
|
assert_equal(true, FeedTools.tidy_enabled?,
|
611
612
|
"Could not enable tidyhtml, library may be missing.")
|
612
613
|
with_feed(:from_file => 'wellformed/amp/amp22.xml') { |feed|
|
@@ -615,7 +616,7 @@ class AmpTest < Test::Unit::TestCase
|
|
615
616
|
end
|
616
617
|
|
617
618
|
def test_amp_tidy_23
|
618
|
-
FeedTools.tidy_enabled = true
|
619
|
+
FeedTools.configurations[:tidy_enabled] = true
|
619
620
|
assert_equal(true, FeedTools.tidy_enabled?,
|
620
621
|
"Could not enable tidyhtml, library may be missing.")
|
621
622
|
with_feed(:from_file => 'wellformed/amp/amp23.xml') { |feed|
|
@@ -624,7 +625,7 @@ class AmpTest < Test::Unit::TestCase
|
|
624
625
|
end
|
625
626
|
|
626
627
|
def test_amp_tidy_24
|
627
|
-
FeedTools.tidy_enabled = true
|
628
|
+
FeedTools.configurations[:tidy_enabled] = true
|
628
629
|
assert_equal(true, FeedTools.tidy_enabled?,
|
629
630
|
"Could not enable tidyhtml, library may be missing.")
|
630
631
|
with_feed(:from_file => 'wellformed/amp/amp24.xml') { |feed|
|
@@ -633,7 +634,7 @@ class AmpTest < Test::Unit::TestCase
|
|
633
634
|
end
|
634
635
|
|
635
636
|
def test_amp_tidy_25
|
636
|
-
FeedTools.tidy_enabled = true
|
637
|
+
FeedTools.configurations[:tidy_enabled] = true
|
637
638
|
assert_equal(true, FeedTools.tidy_enabled?,
|
638
639
|
"Could not enable tidyhtml, library may be missing.")
|
639
640
|
with_feed(:from_file => 'wellformed/amp/amp25.xml') { |feed|
|
@@ -642,7 +643,7 @@ class AmpTest < Test::Unit::TestCase
|
|
642
643
|
end
|
643
644
|
|
644
645
|
def test_amp_tidy_26
|
645
|
-
FeedTools.tidy_enabled = true
|
646
|
+
FeedTools.configurations[:tidy_enabled] = true
|
646
647
|
assert_equal(true, FeedTools.tidy_enabled?,
|
647
648
|
"Could not enable tidyhtml, library may be missing.")
|
648
649
|
with_feed(:from_file => 'wellformed/amp/amp26.xml') { |feed|
|
@@ -651,7 +652,7 @@ class AmpTest < Test::Unit::TestCase
|
|
651
652
|
end
|
652
653
|
|
653
654
|
def test_amp_tidy_27
|
654
|
-
FeedTools.tidy_enabled = true
|
655
|
+
FeedTools.configurations[:tidy_enabled] = true
|
655
656
|
assert_equal(true, FeedTools.tidy_enabled?,
|
656
657
|
"Could not enable tidyhtml, library may be missing.")
|
657
658
|
with_feed(:from_file => 'wellformed/amp/amp27.xml') { |feed|
|
@@ -660,7 +661,7 @@ class AmpTest < Test::Unit::TestCase
|
|
660
661
|
end
|
661
662
|
|
662
663
|
def test_amp_tidy_28
|
663
|
-
FeedTools.tidy_enabled = true
|
664
|
+
FeedTools.configurations[:tidy_enabled] = true
|
664
665
|
assert_equal(true, FeedTools.tidy_enabled?,
|
665
666
|
"Could not enable tidyhtml, library may be missing.")
|
666
667
|
with_feed(:from_file => 'wellformed/amp/amp28.xml') { |feed|
|
@@ -669,7 +670,7 @@ class AmpTest < Test::Unit::TestCase
|
|
669
670
|
end
|
670
671
|
|
671
672
|
def test_amp_tidy_29
|
672
|
-
FeedTools.tidy_enabled = true
|
673
|
+
FeedTools.configurations[:tidy_enabled] = true
|
673
674
|
assert_equal(true, FeedTools.tidy_enabled?,
|
674
675
|
"Could not enable tidyhtml, library may be missing.")
|
675
676
|
with_feed(:from_file => 'wellformed/amp/amp29.xml') { |feed|
|
@@ -678,7 +679,7 @@ class AmpTest < Test::Unit::TestCase
|
|
678
679
|
end
|
679
680
|
|
680
681
|
def test_amp_tidy_30
|
681
|
-
FeedTools.tidy_enabled = true
|
682
|
+
FeedTools.configurations[:tidy_enabled] = true
|
682
683
|
assert_equal(true, FeedTools.tidy_enabled?,
|
683
684
|
"Could not enable tidyhtml, library may be missing.")
|
684
685
|
with_feed(:from_file => 'wellformed/amp/amp30.xml') { |feed|
|
@@ -687,7 +688,7 @@ class AmpTest < Test::Unit::TestCase
|
|
687
688
|
end
|
688
689
|
|
689
690
|
def test_amp_tidy_31
|
690
|
-
FeedTools.tidy_enabled = true
|
691
|
+
FeedTools.configurations[:tidy_enabled] = true
|
691
692
|
assert_equal(true, FeedTools.tidy_enabled?,
|
692
693
|
"Could not enable tidyhtml, library may be missing.")
|
693
694
|
with_feed(:from_file => 'wellformed/amp/amp31.xml') { |feed|
|
@@ -696,7 +697,7 @@ class AmpTest < Test::Unit::TestCase
|
|
696
697
|
end
|
697
698
|
|
698
699
|
def test_amp_tidy_32
|
699
|
-
FeedTools.tidy_enabled = true
|
700
|
+
FeedTools.configurations[:tidy_enabled] = true
|
700
701
|
assert_equal(true, FeedTools.tidy_enabled?,
|
701
702
|
"Could not enable tidyhtml, library may be missing.")
|
702
703
|
with_feed(:from_file => 'wellformed/amp/amp32.xml') { |feed|
|
@@ -705,7 +706,7 @@ class AmpTest < Test::Unit::TestCase
|
|
705
706
|
end
|
706
707
|
|
707
708
|
def test_amp_tidy_33
|
708
|
-
FeedTools.tidy_enabled = true
|
709
|
+
FeedTools.configurations[:tidy_enabled] = true
|
709
710
|
assert_equal(true, FeedTools.tidy_enabled?,
|
710
711
|
"Could not enable tidyhtml, library may be missing.")
|
711
712
|
with_feed(:from_file => 'wellformed/amp/amp33.xml') { |feed|
|
@@ -714,7 +715,7 @@ class AmpTest < Test::Unit::TestCase
|
|
714
715
|
end
|
715
716
|
|
716
717
|
def test_amp_tidy_34
|
717
|
-
FeedTools.tidy_enabled = true
|
718
|
+
FeedTools.configurations[:tidy_enabled] = true
|
718
719
|
assert_equal(true, FeedTools.tidy_enabled?,
|
719
720
|
"Could not enable tidyhtml, library may be missing.")
|
720
721
|
with_feed(:from_file => 'wellformed/amp/amp34.xml') { |feed|
|
@@ -723,7 +724,7 @@ class AmpTest < Test::Unit::TestCase
|
|
723
724
|
end
|
724
725
|
|
725
726
|
def test_amp_tidy_35
|
726
|
-
FeedTools.tidy_enabled = true
|
727
|
+
FeedTools.configurations[:tidy_enabled] = true
|
727
728
|
assert_equal(true, FeedTools.tidy_enabled?,
|
728
729
|
"Could not enable tidyhtml, library may be missing.")
|
729
730
|
with_feed(:from_file => 'wellformed/amp/amp35.xml') { |feed|
|
@@ -732,7 +733,7 @@ class AmpTest < Test::Unit::TestCase
|
|
732
733
|
end
|
733
734
|
|
734
735
|
def test_amp_tidy_36
|
735
|
-
FeedTools.tidy_enabled = true
|
736
|
+
FeedTools.configurations[:tidy_enabled] = true
|
736
737
|
assert_equal(true, FeedTools.tidy_enabled?,
|
737
738
|
"Could not enable tidyhtml, library may be missing.")
|
738
739
|
with_feed(:from_file => 'wellformed/amp/amp36.xml') { |feed|
|
@@ -741,7 +742,7 @@ class AmpTest < Test::Unit::TestCase
|
|
741
742
|
end
|
742
743
|
|
743
744
|
def test_amp_tidy_37
|
744
|
-
FeedTools.tidy_enabled = true
|
745
|
+
FeedTools.configurations[:tidy_enabled] = true
|
745
746
|
assert_equal(true, FeedTools.tidy_enabled?,
|
746
747
|
"Could not enable tidyhtml, library may be missing.")
|
747
748
|
with_feed(:from_file => 'wellformed/amp/amp37.xml') { |feed|
|
@@ -750,7 +751,7 @@ class AmpTest < Test::Unit::TestCase
|
|
750
751
|
end
|
751
752
|
|
752
753
|
def test_amp_tidy_38
|
753
|
-
FeedTools.tidy_enabled = true
|
754
|
+
FeedTools.configurations[:tidy_enabled] = true
|
754
755
|
assert_equal(true, FeedTools.tidy_enabled?,
|
755
756
|
"Could not enable tidyhtml, library may be missing.")
|
756
757
|
with_feed(:from_file => 'wellformed/amp/amp38.xml') { |feed|
|
@@ -759,7 +760,7 @@ class AmpTest < Test::Unit::TestCase
|
|
759
760
|
end
|
760
761
|
|
761
762
|
def test_amp_tidy_39
|
762
|
-
FeedTools.tidy_enabled = true
|
763
|
+
FeedTools.configurations[:tidy_enabled] = true
|
763
764
|
assert_equal(true, FeedTools.tidy_enabled?,
|
764
765
|
"Could not enable tidyhtml, library may be missing.")
|
765
766
|
with_feed(:from_file => 'wellformed/amp/amp39.xml') { |feed|
|
@@ -768,7 +769,7 @@ class AmpTest < Test::Unit::TestCase
|
|
768
769
|
end
|
769
770
|
|
770
771
|
def test_amp_tidy_40
|
771
|
-
FeedTools.tidy_enabled = true
|
772
|
+
FeedTools.configurations[:tidy_enabled] = true
|
772
773
|
assert_equal(true, FeedTools.tidy_enabled?,
|
773
774
|
"Could not enable tidyhtml, library may be missing.")
|
774
775
|
with_feed(:from_file => 'wellformed/amp/amp40.xml') { |feed|
|
@@ -777,7 +778,7 @@ class AmpTest < Test::Unit::TestCase
|
|
777
778
|
end
|
778
779
|
|
779
780
|
def test_amp_tidy_41
|
780
|
-
FeedTools.tidy_enabled = true
|
781
|
+
FeedTools.configurations[:tidy_enabled] = true
|
781
782
|
assert_equal(true, FeedTools.tidy_enabled?,
|
782
783
|
"Could not enable tidyhtml, library may be missing.")
|
783
784
|
with_feed(:from_file => 'wellformed/amp/amp41.xml') { |feed|
|
@@ -786,7 +787,7 @@ class AmpTest < Test::Unit::TestCase
|
|
786
787
|
end
|
787
788
|
|
788
789
|
def test_amp_tidy_42
|
789
|
-
FeedTools.tidy_enabled = true
|
790
|
+
FeedTools.configurations[:tidy_enabled] = true
|
790
791
|
assert_equal(true, FeedTools.tidy_enabled?,
|
791
792
|
"Could not enable tidyhtml, library may be missing.")
|
792
793
|
with_feed(:from_file => 'wellformed/amp/amp42.xml') { |feed|
|
@@ -795,7 +796,7 @@ class AmpTest < Test::Unit::TestCase
|
|
795
796
|
end
|
796
797
|
|
797
798
|
def test_amp_tidy_43
|
798
|
-
FeedTools.tidy_enabled = true
|
799
|
+
FeedTools.configurations[:tidy_enabled] = true
|
799
800
|
assert_equal(true, FeedTools.tidy_enabled?,
|
800
801
|
"Could not enable tidyhtml, library may be missing.")
|
801
802
|
with_feed(:from_file => 'wellformed/amp/amp43.xml') { |feed|
|
@@ -804,7 +805,7 @@ class AmpTest < Test::Unit::TestCase
|
|
804
805
|
end
|
805
806
|
|
806
807
|
def test_amp_tidy_44
|
807
|
-
FeedTools.tidy_enabled = true
|
808
|
+
FeedTools.configurations[:tidy_enabled] = true
|
808
809
|
assert_equal(true, FeedTools.tidy_enabled?,
|
809
810
|
"Could not enable tidyhtml, library may be missing.")
|
810
811
|
with_feed(:from_file => 'wellformed/amp/amp44.xml') { |feed|
|
@@ -813,7 +814,7 @@ class AmpTest < Test::Unit::TestCase
|
|
813
814
|
end
|
814
815
|
|
815
816
|
def test_amp_tidy_45
|
816
|
-
FeedTools.tidy_enabled = true
|
817
|
+
FeedTools.configurations[:tidy_enabled] = true
|
817
818
|
assert_equal(true, FeedTools.tidy_enabled?,
|
818
819
|
"Could not enable tidyhtml, library may be missing.")
|
819
820
|
with_feed(:from_file => 'wellformed/amp/amp45.xml') { |feed|
|
@@ -822,7 +823,7 @@ class AmpTest < Test::Unit::TestCase
|
|
822
823
|
end
|
823
824
|
|
824
825
|
def test_amp_tidy_46
|
825
|
-
FeedTools.tidy_enabled = true
|
826
|
+
FeedTools.configurations[:tidy_enabled] = true
|
826
827
|
assert_equal(true, FeedTools.tidy_enabled?,
|
827
828
|
"Could not enable tidyhtml, library may be missing.")
|
828
829
|
with_feed(:from_file => 'wellformed/amp/amp46.xml') { |feed|
|
@@ -831,7 +832,7 @@ class AmpTest < Test::Unit::TestCase
|
|
831
832
|
end
|
832
833
|
|
833
834
|
def test_amp_tidy_47
|
834
|
-
FeedTools.tidy_enabled = true
|
835
|
+
FeedTools.configurations[:tidy_enabled] = true
|
835
836
|
assert_equal(true, FeedTools.tidy_enabled?,
|
836
837
|
"Could not enable tidyhtml, library may be missing.")
|
837
838
|
with_feed(:from_file => 'wellformed/amp/amp47.xml') { |feed|
|
@@ -840,7 +841,7 @@ class AmpTest < Test::Unit::TestCase
|
|
840
841
|
end
|
841
842
|
|
842
843
|
def test_amp_tidy_48
|
843
|
-
FeedTools.tidy_enabled = true
|
844
|
+
FeedTools.configurations[:tidy_enabled] = true
|
844
845
|
assert_equal(true, FeedTools.tidy_enabled?,
|
845
846
|
"Could not enable tidyhtml, library may be missing.")
|
846
847
|
with_feed(:from_file => 'wellformed/amp/amp48.xml') { |feed|
|
@@ -849,7 +850,7 @@ class AmpTest < Test::Unit::TestCase
|
|
849
850
|
end
|
850
851
|
|
851
852
|
def test_amp_tidy_49
|
852
|
-
FeedTools.tidy_enabled = true
|
853
|
+
FeedTools.configurations[:tidy_enabled] = true
|
853
854
|
assert_equal(true, FeedTools.tidy_enabled?,
|
854
855
|
"Could not enable tidyhtml, library may be missing.")
|
855
856
|
with_feed(:from_file => 'wellformed/amp/amp49.xml') { |feed|
|
@@ -858,7 +859,7 @@ class AmpTest < Test::Unit::TestCase
|
|
858
859
|
end
|
859
860
|
|
860
861
|
def test_amp_tidy_50
|
861
|
-
FeedTools.tidy_enabled = true
|
862
|
+
FeedTools.configurations[:tidy_enabled] = true
|
862
863
|
assert_equal(true, FeedTools.tidy_enabled?,
|
863
864
|
"Could not enable tidyhtml, library may be missing.")
|
864
865
|
with_feed(:from_file => 'wellformed/amp/amp50.xml') { |feed|
|
@@ -867,7 +868,7 @@ class AmpTest < Test::Unit::TestCase
|
|
867
868
|
end
|
868
869
|
|
869
870
|
def test_amp_tidy_51
|
870
|
-
FeedTools.tidy_enabled = true
|
871
|
+
FeedTools.configurations[:tidy_enabled] = true
|
871
872
|
assert_equal(true, FeedTools.tidy_enabled?,
|
872
873
|
"Could not enable tidyhtml, library may be missing.")
|
873
874
|
with_feed(:from_file => 'wellformed/amp/amp51.xml') { |feed|
|
@@ -876,7 +877,7 @@ class AmpTest < Test::Unit::TestCase
|
|
876
877
|
end
|
877
878
|
|
878
879
|
def test_amp_tidy_52
|
879
|
-
FeedTools.tidy_enabled = true
|
880
|
+
FeedTools.configurations[:tidy_enabled] = true
|
880
881
|
assert_equal(true, FeedTools.tidy_enabled?,
|
881
882
|
"Could not enable tidyhtml, library may be missing.")
|
882
883
|
with_feed(:from_file => 'wellformed/amp/amp52.xml') { |feed|
|
@@ -885,7 +886,7 @@ class AmpTest < Test::Unit::TestCase
|
|
885
886
|
end
|
886
887
|
|
887
888
|
def test_amp_tidy_53
|
888
|
-
FeedTools.tidy_enabled = true
|
889
|
+
FeedTools.configurations[:tidy_enabled] = true
|
889
890
|
assert_equal(true, FeedTools.tidy_enabled?,
|
890
891
|
"Could not enable tidyhtml, library may be missing.")
|
891
892
|
with_feed(:from_file => 'wellformed/amp/amp53.xml') { |feed|
|
@@ -894,7 +895,7 @@ class AmpTest < Test::Unit::TestCase
|
|
894
895
|
end
|
895
896
|
|
896
897
|
def test_amp_tidy_54
|
897
|
-
FeedTools.tidy_enabled = true
|
898
|
+
FeedTools.configurations[:tidy_enabled] = true
|
898
899
|
assert_equal(true, FeedTools.tidy_enabled?,
|
899
900
|
"Could not enable tidyhtml, library may be missing.")
|
900
901
|
with_feed(:from_file => 'wellformed/amp/amp54.xml') { |feed|
|
@@ -903,7 +904,7 @@ class AmpTest < Test::Unit::TestCase
|
|
903
904
|
end
|
904
905
|
|
905
906
|
def test_amp_tidy_55
|
906
|
-
FeedTools.tidy_enabled = true
|
907
|
+
FeedTools.configurations[:tidy_enabled] = true
|
907
908
|
assert_equal(true, FeedTools.tidy_enabled?,
|
908
909
|
"Could not enable tidyhtml, library may be missing.")
|
909
910
|
with_feed(:from_file => 'wellformed/amp/amp55.xml') { |feed|
|
@@ -912,7 +913,7 @@ class AmpTest < Test::Unit::TestCase
|
|
912
913
|
end
|
913
914
|
|
914
915
|
def test_amp_tidy_56
|
915
|
-
FeedTools.tidy_enabled = true
|
916
|
+
FeedTools.configurations[:tidy_enabled] = true
|
916
917
|
assert_equal(true, FeedTools.tidy_enabled?,
|
917
918
|
"Could not enable tidyhtml, library may be missing.")
|
918
919
|
with_feed(:from_file => 'wellformed/amp/amp56.xml') { |feed|
|
@@ -921,7 +922,7 @@ class AmpTest < Test::Unit::TestCase
|
|
921
922
|
end
|
922
923
|
|
923
924
|
def test_amp_tidy_57
|
924
|
-
FeedTools.tidy_enabled = true
|
925
|
+
FeedTools.configurations[:tidy_enabled] = true
|
925
926
|
assert_equal(true, FeedTools.tidy_enabled?,
|
926
927
|
"Could not enable tidyhtml, library may be missing.")
|
927
928
|
with_feed(:from_file => 'wellformed/amp/amp57.xml') { |feed|
|
@@ -930,7 +931,7 @@ class AmpTest < Test::Unit::TestCase
|
|
930
931
|
end
|
931
932
|
|
932
933
|
def test_amp_tidy_58
|
933
|
-
FeedTools.tidy_enabled = true
|
934
|
+
FeedTools.configurations[:tidy_enabled] = true
|
934
935
|
assert_equal(true, FeedTools.tidy_enabled?,
|
935
936
|
"Could not enable tidyhtml, library may be missing.")
|
936
937
|
with_feed(:from_file => 'wellformed/amp/amp58.xml') { |feed|
|
@@ -939,7 +940,7 @@ class AmpTest < Test::Unit::TestCase
|
|
939
940
|
end
|
940
941
|
|
941
942
|
def test_amp_tidy_59
|
942
|
-
FeedTools.tidy_enabled = true
|
943
|
+
FeedTools.configurations[:tidy_enabled] = true
|
943
944
|
assert_equal(true, FeedTools.tidy_enabled?,
|
944
945
|
"Could not enable tidyhtml, library may be missing.")
|
945
946
|
with_feed(:from_file => 'wellformed/amp/amp59.xml') { |feed|
|
@@ -948,7 +949,7 @@ class AmpTest < Test::Unit::TestCase
|
|
948
949
|
end
|
949
950
|
|
950
951
|
def test_amp_tidy_60
|
951
|
-
FeedTools.tidy_enabled = true
|
952
|
+
FeedTools.configurations[:tidy_enabled] = true
|
952
953
|
assert_equal(true, FeedTools.tidy_enabled?,
|
953
954
|
"Could not enable tidyhtml, library may be missing.")
|
954
955
|
with_feed(:from_file => 'wellformed/amp/amp60.xml') { |feed|
|
@@ -957,7 +958,7 @@ class AmpTest < Test::Unit::TestCase
|
|
957
958
|
end
|
958
959
|
|
959
960
|
def test_amp_tidy_61
|
960
|
-
FeedTools.tidy_enabled = true
|
961
|
+
FeedTools.configurations[:tidy_enabled] = true
|
961
962
|
assert_equal(true, FeedTools.tidy_enabled?,
|
962
963
|
"Could not enable tidyhtml, library may be missing.")
|
963
964
|
with_feed(:from_file => 'wellformed/amp/amp61.xml') { |feed|
|
@@ -966,7 +967,7 @@ class AmpTest < Test::Unit::TestCase
|
|
966
967
|
end
|
967
968
|
|
968
969
|
def test_amp_tidy_62
|
969
|
-
FeedTools.tidy_enabled = true
|
970
|
+
FeedTools.configurations[:tidy_enabled] = true
|
970
971
|
assert_equal(true, FeedTools.tidy_enabled?,
|
971
972
|
"Could not enable tidyhtml, library may be missing.")
|
972
973
|
with_feed(:from_file => 'wellformed/amp/amp62.xml') { |feed|
|
@@ -975,7 +976,7 @@ class AmpTest < Test::Unit::TestCase
|
|
975
976
|
end
|
976
977
|
|
977
978
|
def test_amp_tidy_63
|
978
|
-
FeedTools.tidy_enabled = true
|
979
|
+
FeedTools.configurations[:tidy_enabled] = true
|
979
980
|
assert_equal(true, FeedTools.tidy_enabled?,
|
980
981
|
"Could not enable tidyhtml, library may be missing.")
|
981
982
|
with_feed(:from_file => 'wellformed/amp/amp63.xml') { |feed|
|
@@ -984,7 +985,7 @@ class AmpTest < Test::Unit::TestCase
|
|
984
985
|
end
|
985
986
|
|
986
987
|
def test_amp_tidy_64
|
987
|
-
FeedTools.tidy_enabled = true
|
988
|
+
FeedTools.configurations[:tidy_enabled] = true
|
988
989
|
assert_equal(true, FeedTools.tidy_enabled?,
|
989
990
|
"Could not enable tidyhtml, library may be missing.")
|
990
991
|
with_feed(:from_file => 'wellformed/amp/amp64.xml') { |feed|
|
@@ -993,7 +994,7 @@ class AmpTest < Test::Unit::TestCase
|
|
993
994
|
end
|
994
995
|
|
995
996
|
def test_amp_tidy_65
|
996
|
-
FeedTools.tidy_enabled = true
|
997
|
+
FeedTools.configurations[:tidy_enabled] = true
|
997
998
|
assert_equal(true, FeedTools.tidy_enabled?,
|
998
999
|
"Could not enable tidyhtml, library may be missing.")
|
999
1000
|
with_feed(:from_data => <<-FEED
|