test/feed_parser_test.rb in flannel-0.2.6 vs test/feed_parser_test.rb in flannel-0.2.7
- old
+ new
@@ -2,11 +2,11 @@
require 'mocha'
class FeedParserTest < Test::Unit::TestCase
context "wiring" do
setup do
- @rubyyot = File.read(File.join(File.dirname(__FILE__), "..", "features", "fixtures", "rubyyot.rss"))
+ @rubyyot = IO.read(File.join(File.dirname(__FILE__), "..", "features", "fixtures", "rubyyot.rss"))
@expected_rubyyot = "<ul><li>\n <a href='http://blog.rubyyot"
end
should "be set up for feeds" do
feed = "http://blog.rubyyot.com/tag/rubyyot/feed/rss"
@@ -16,10 +16,10 @@
end
end
context "bootstrapping test" do
setup do
- @devlicious = File.read(File.join(File.dirname(__FILE__), "..", "features", "fixtures", "devlicious.rss"))
+ @devlicious = IO.read(File.join(File.dirname(__FILE__), "..", "features", "fixtures", "devlicious.rss"))
@rubyyot = File.read(File.join(File.dirname(__FILE__), "..", "features", "fixtures", "rubyyot.rss"))
end
should "read rss files" do
assert_not_nil @devlicious