schematic 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
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
|