Sha256: a22806667a4ad890c05154bd26e36cd3bf97412a5e604b109c98dece12527aee

Contents?: true

Size: 903 Bytes

Versions: 11

Compression:

Stored size: 903 Bytes

Contents

require 'test/unit'
require 'feed_tools'
require 'feed_tools/helpers/feed_tools_helper'

class InterfaceTest < Test::Unit::TestCase
  def setup
    FeedTools.reset_configurations
    FeedTools.configurations[:tidy_enabled] = false
    FeedTools.configurations[:feed_cache] = "FeedTools::DatabaseFeedCache"
    FeedTools::FeedToolsHelper.default_local_path = 
      File.expand_path(
        File.expand_path(File.dirname(__FILE__)) + '/../feeds')
  end

  def test_feed_interface
    # These will throw an exception if missing, obviously
    feed = FeedTools::Feed.new
    feed.title
    feed.subtitle
    feed.description
    feed.link
    feed.entries
    feed.items
  end
  
  def test_feed_item_interface
    # These will throw an exception if missing, obviously
    feed_item = FeedTools::FeedItem.new
    feed_item.title
    feed_item.content
    feed_item.description
    feed_item.link
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
feedtools-0.2.19 test/unit/interface_test.rb
feedtools-0.2.20 test/unit/interface_test.rb
feedtools-0.2.21 test/unit/interface_test.rb
feedtools-0.2.23 test/unit/interface_test.rb
feedtools-0.2.22 test/unit/interface_test.rb
feedtools-0.2.24 test/unit/interface_test.rb
feedtools-0.2.26 test/unit/interface_test.rb
feedtools-0.2.25 test/unit/interface_test.rb
feedtools-0.2.27 test/unit/interface_test.rb
feedtools-0.2.28 test/unit/interface_test.rb
feedtools-0.2.29 test/unit/interface_test.rb