schematic 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/schematic/version.rb
CHANGED
@@ -380,5 +380,13 @@ describe Schematic::Serializers::Xsd do
|
|
380
380
|
it "turns 'children' into 'children-attributes'" do
|
381
381
|
xsd.nested_attribute_name('children').should == "children-attributes"
|
382
382
|
end
|
383
|
+
|
384
|
+
it "turns 'special-children' into 'special-children-attributes'" do
|
385
|
+
xsd.nested_attribute_name("special_children").should == "special-children-attributes"
|
386
|
+
end
|
387
|
+
|
388
|
+
it "properly converts symbols" do
|
389
|
+
xsd.nested_attribute_name(:very_special_children).should == "very-special-children-attributes"
|
390
|
+
end
|
383
391
|
end
|
384
392
|
end
|