# Copyright 2018 Alex Smith # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require "spec" require "../src/cryss" def ex_cloud RSS::Cloud.new( domain: "rpc.sys.com", port: 80, path: "/RPC2", register_procedure: "pingMe", protocol: "soap" ) end def ex_enclosure RSS::Enclosure.new( url: "http://live.curry.com/mp3/celebritySCms.mp3", length: 1069871, type: "audio/mpeg" ) end def base_channel RSS::Channel.new( link: "http://www.goupstate.com/", title: "GoUpstate.com News Headlines", description: "The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site." ) end HEADER = "\n" CLOUD_TEST = "" ENCLOSURE_TEST = "" ITEM_TEST = HEADER + <<-XML Venice Film Festival Tries to Quit Sinking http://www.nytimes.com/2002/09/07/movies/07FEST.html Some of the most heated chatter at the Venice Film Festival this week was about the way that the arrival of the stars at the Palazzo del Cinema was being staged. oprah@oxygen.net Simpsons Characters http://www.myblog.org/cgi-local/mt/mt-comments.cgi?entry_id=290 #{ENCLOSURE_TEST} http://inessential.com/2002/09/01.php#a2 Sun, 19 May 2002 15:21:36 +0000 Quotes of the Day XML CHANNEL_TEST = HEADER + <<-XML GoUpstate.com News Headlines http://www.goupstate.com/ The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site. Newspapers #{CLOUD_TEST} Copyright 2002, Spartanburg Herald-Journal http://backend.userland.com/rss MightyInHouse Content System v2.3 en-us Sat, 7 Sep 2002 09:42:31 +0000 geo@herald.com (George Matesky) Sat, 7 Sep 2002 00:00:01 +0000 60 betty@herald.com (Betty Guernsey) XML SKIP_DAY_TEST = HEADER + <<-XML GoUpstate.com News Headlines http://www.goupstate.com/ The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site. https://validator.w3.org/feed/docs/rss2.html cryss 2 6 18 22 Monday Wednesday XML NAMESPACE_TEST = HEADER + <<-XML GoUpstate.com News Headlines http://www.goupstate.com/ The latest news from GoUpstate.com, a Spartanburg Herald-Journal Web site. https://validator.w3.org/feed/docs/rss2.html cryss Copyright 2002 New item CSS XML