Sha256: ce80b83e8690f66594542a432268d2fe54ef85a73baec8ac0ed66e2596126810

Contents?: true

Size: 526 Bytes

Versions: 24

Compression:

Stored size: 526 Bytes

Contents

require 'spec_helper'

describe "OM::XML::Container" do
  
  before(:all) do
    class XMLTest
      include OM::XML
    end
  end
  
  it "should automatically include the other modules" do
    XMLTest.included_modules.should include(OM::XML::Container)
    XMLTest.included_modules.should include(OM::XML::Validation)
  end
  
  describe "#sanitize_pointer" do
    it "should convert any nested arrays into hashes" do
      XMLTest.sanitize_pointer( [[:person,1],:role] ).should == [{:person=>1},:role]
    end
  end
  
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
om-3.1.0 spec/unit/xml_spec.rb
om-3.0.7 spec/unit/xml_spec.rb
om-3.0.6 spec/unit/xml_spec.rb
om-3.0.5 spec/unit/xml_spec.rb
om-3.0.4 spec/unit/xml_spec.rb
om-3.0.3 spec/unit/xml_spec.rb
om-3.0.2 spec/unit/xml_spec.rb
om-3.0.1 spec/unit/xml_spec.rb
om-3.0.0 spec/unit/xml_spec.rb
om-2.2.1 spec/unit/xml_spec.rb
om-3.0.0.beta2 spec/unit/xml_spec.rb
om-3.0.0.beta1 spec/unit/xml_spec.rb
om-2.1.2 spec/unit/xml_spec.rb
om-2.1.1 spec/unit/xml_spec.rb
om-2.1.0 spec/unit/xml_spec.rb
om-2.0.0 spec/unit/xml_spec.rb
om-1.9.0.rc1 spec/unit/xml_spec.rb
om-1.9.0.pre1 spec/unit/xml_spec.rb
om-1.8.0 spec/unit/xml_spec.rb
om-1.8.0.rc1 spec/unit/xml_spec.rb