Sha256: 8ad20384dc02184f9132235f303a9f4056e495d8ecdd0718a9a86c17974b204e
Contents?: true
Size: 462 Bytes
Versions: 5
Compression:
Stored size: 462 Bytes
Contents
require 'rexml/document' describe "REXML::Attribute#prefix" do it "returns the namespace of the Attribute" do ans = REXML::Attribute.new("ns:someattr", "some_value") out = REXML::Attribute.new("out:something", "some_other_value") ans.prefix.should == "ns" out.prefix.should == "out" end it "returns an empty string for Attributes with no prefixes" do attr = REXML::Attribute.new("foo", "bar") attr.prefix.should == "" end end
Version data entries
5 entries across 5 versions & 1 rubygems