spec/atomic/service_spec.rb in exempla-atomic-0.0.11 vs spec/atomic/service_spec.rb in exempla-atomic-0.0.12
- old
+ new
@@ -1,14 +1,35 @@
require File.dirname(__FILE__) + '/../spec_helper'
+require File.dirname(__FILE__) + '/atomic_spec_helper'
-describe Atomic::Service do
+describe Atomic::Atompub::Service do
- before(:each) do
+ include AtomicSpecHelper
+
+ describe "#new" do
+
end
- it "should work" do
- xml = File.read(File.join(File.dirname(__FILE__), '..', 'fixtures', 'valid_atom_service.xml'))
- @service = Atomic::Service.parse(xml)
+ describe "#parse" do
+ it "should work" do
+ xml = File.read(File.join(File.dirname(__FILE__), '..', 'fixtures', 'valid_atom_service.xml'))
+ @service = Atomic::Atompub::Service.parse(xml)
+ end
end
+
+ describe "#to_hash" do
+
+ end
+
+ describe "#to_xml" do
+ before(:each) do
+ @service = Atomic::Atompub::Service.new(valid_service_attributes)
+ end
+
+ it "should work" do
+ puts @service.to_xml(true)
+ end
+ end
+
end