fblee-feedzirra 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,7 @@ describe Feedzirra::FeedUtilities do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
it "should parse a bunch of strangely encoded stuff into Time" do
|
18
|
+
# note this test needs updating every month to correct the month name
|
18
19
|
time = @klass.new.parse_datetime("Mon, 4 Jan 7010 13:51:39 EST")
|
19
20
|
time.class.should == Time
|
20
21
|
time.to_s.should == "Mon Jan 04 18:51:39 UTC 2010"
|
@@ -23,6 +24,12 @@ describe Feedzirra::FeedUtilities do
|
|
23
24
|
time.class.should == Time
|
24
25
|
time.to_s.should == "Tue Jan 05 15:37:00 UTC 2010"
|
25
26
|
end
|
27
|
+
|
28
|
+
it "should parse dates used by fox news" do
|
29
|
+
time = @klass.new.parse_datetime("Thu, 13 May 2010 13:58:28 EST")
|
30
|
+
time.class.should == Time
|
31
|
+
time.to_s.should == "Thu May 13 18:58:28 UTC 2010"
|
32
|
+
end
|
26
33
|
end
|
27
34
|
|
28
35
|
describe "sanitizing" do
|