jimmyz-happymapper 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History +4 -0
- data/happymapper.gemspec +1 -1
- data/lib/happymapper/item.rb +1 -1
- data/lib/happymapper/version.rb +1 -1
- data/spec/happymapper_spec.rb +8 -0
- metadata +1 -1
data/History
CHANGED
data/happymapper.gemspec
CHANGED
data/lib/happymapper/item.rb
CHANGED
data/lib/happymapper/version.rb
CHANGED
data/spec/happymapper_spec.rb
CHANGED
@@ -639,6 +639,14 @@ describe HappyMapper do
|
|
639
639
|
doc.should have_nodes("/posts/@user",0)
|
640
640
|
end
|
641
641
|
|
642
|
+
it "should not serialize elements that are nil" do
|
643
|
+
ft = FamilySearch::FamilyTree.new
|
644
|
+
#ft has nil persons element should not raise error
|
645
|
+
lambda{
|
646
|
+
ft.to_xml
|
647
|
+
}.should_not raise_error
|
648
|
+
end
|
649
|
+
|
642
650
|
describe "with namespace url and prefix" do
|
643
651
|
before(:all) do
|
644
652
|
ft = FamilySearch::FamilyTree.parse(fixture_file('family_tree.xml'))
|