spec/atomic/feed_spec.rb in exempla-atomic-0.0.11 vs spec/atomic/feed_spec.rb in exempla-atomic-0.0.12

- old
+ new

@@ -1,12 +1,37 @@ require File.dirname(__FILE__) + '/../spec_helper' +require File.dirname(__FILE__) + '/atomic_spec_helper' -describe Atomic::Feed do - before(:each) do +describe Atomic::Atom::Feed do + + include AtomicSpecHelper + + describe "#new" do + end - it "should work" do - xml = File.read(File.join(File.dirname(__FILE__), '..', 'fixtures', 'valid_atom_feed.xml')) - @feed = Atomic::Feed.parse(xml) + describe "#parse" do + before(:each) do + @xml = File.read(File.join(File.dirname(__FILE__), '..', 'fixtures', 'valid_atom_feed.xml')) + @feed = Atomic::Atom::Feed.parse(@xml) + end + it "should work" do + + end end + + describe "#to_hash" do + + end + + describe "#to_xml" do + before(:each) do + @feed = Atomic::Atom::Feed.new(valid_feed_attributes) + end + + it "should work" do + puts @feed.to_xml(true) + end + end + end