spec/schematic/generator/sandbox_spec.rb in schematic-0.5.6 vs spec/schematic/generator/sandbox_spec.rb in schematic-0.5.7

- old
+ new

@@ -75,6 +75,17 @@ end subject.required_elements.should include(:foo) subject.required_elements.should include(:bar) end end + + describe "setting the root" do + it "should change the root element name" do + subject.run do + root "my_new_root" + end + + subject.xsd_generator.names.element.should == "my-new-root" + subject.xsd_generator.names.element_collection.should == "my-new-roots" + end + end end