Sha256: 9dd0e1aa1134bd454020c6700b027671903aaf60a21ae6d8d3e2c572d0e1cd14

Contents?: true

Size: 604 Bytes

Versions: 21

Compression:

Stored size: 604 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require "nokogiri"
require "om"

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

21 entries across 21 versions & 1 rubygems

Version Path
om-1.6.0 spec/unit/xml_spec.rb
om-1.6.0.rc3 spec/unit/xml_spec.rb
om-1.6.0.rc2 spec/unit/xml_spec.rb
om-1.6.0.rc1 spec/unit/xml_spec.rb
om-1.5.3 spec/unit/xml_spec.rb
om-1.5.2 spec/unit/xml_spec.rb
om-1.5.1 spec/unit/xml_spec.rb
om-1.5.0 spec/unit/xml_spec.rb
om-1.4.4 spec/unit/xml_spec.rb
om-1.4.3 spec/unit/xml_spec.rb
om-1.4.2 spec/unit/xml_spec.rb
om-1.4.0 spec/unit/xml_spec.rb
om-1.3.0 spec/unit/xml_spec.rb
om-1.2.5 spec/unit/xml_spec.rb
om-1.2.4 spec/unit/xml_spec.rb
om-1.2.3 spec/unit/xml_spec.rb
om-1.2.2 spec/unit/xml_spec.rb
om-1.2.1 spec/unit/xml_spec.rb
om-1.2.0 spec/unit/xml_spec.rb
om-1.1.1 spec/unit/xml_spec.rb