Sha256: c8fd44ace50a0697d7c3331348862668ecf759318932bef28f4e030804efade6

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

# -*- coding: utf-8 -*-
require 'minitest/autorun'
require 'minitest/autorun'
require 'simplecov'
SimpleCov.start
require 'sixarm_ruby_rexml'

describe REXML::Element do

  describe "#remove_attributes" do
    
    it "returns XML text without attibutes" do
      xml="<foo a='b' c='d'><bar e='f' g='h'>text</bar></foo>"
      expect="<foo><bar e='f' g='h'>text</bar></foo>"
      doc=REXML::Document.new(xml)
      doc.elements[1].remove_attributes
      doc.to_s.must_equal expect
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sixarm_ruby_rexml-2.1.0 test/sixarm_ruby_rexml_test/element_test.rb