Skip to content

Commit

Permalink
fixed from_xml unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Oct 21, 2010
1 parent ff5f89f commit dac0dce
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions spec/unit/common/converter/xml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def initialize(name)

describe "Feed" do
it "should create a feed from builder DSL" do
pending
time = Time.now
some_articles = {:some_articles => [
{:id => 1, :title => "a great article", :updated => time},
Expand Down Expand Up @@ -61,8 +60,6 @@ def initialize(name)
end

it "should pluralize items on root and singularize on element" do
pending

time = Time.now
some_articles = [Item.new("training"), Item.new("books")]

Expand All @@ -86,7 +83,6 @@ def initialize(name)
describe "Entry" do

it "should use a default recipe extracting first root element that serializes an entire object if responds to to_xml" do
pending
time = Time.now
an_article = {:article => {:id => 1, :title => "a great article", :updated => time}}

Expand All @@ -95,7 +91,6 @@ def initialize(name)
end

it "should use a default recipe that serializes an entire object if responds to to_xml" do
pending
time = Time.now
an_article = {:id => 1, :title => "a great article", :updated => time}

Expand All @@ -104,7 +99,6 @@ def initialize(name)
end

it "should create an entry from builder DSL" do
pending
an_article = {:article => {:id => 1, :title => "a great article"}}

entry = to_xml(an_article) do |member, article|
Expand All @@ -123,7 +117,6 @@ def initialize(name)
end

it "should be able to declare links inside values block" do
pending
an_article = {:article => {:id => 1, :title => "a great article"}}

entry = to_xml(an_article) do |member, article|
Expand All @@ -147,8 +140,6 @@ def initialize(name)
end

it "should create an entry from an already declared recipe" do
pending

describe_recipe(:simple_entry) do |member, article|
member.values do |values|
values.id "uri:#{article[:article][:id]}"
Expand Down

0 comments on commit dac0dce

Please sign in to comment.