Test for element attributes without namespaces.

This commit is contained in:
Yorick Peterse 2014-08-07 20:18:02 +02:00
parent 3b2279e410
commit 798372d099
1 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,7 @@ describe Oga::XML::Parser do
end
example 'do not set a namespace' do
@element.namespace.nil?.should == true
@element.namespace.should be_nil
end
end
@ -49,6 +49,10 @@ describe Oga::XML::Parser do
example 'set the bar attribute' do
@element.attribute('bar').value.should == 'baz'
end
example 'do not set the attribute namespace' do
@element.attribute('bar').namespace.should be_nil
end
end
context 'elements with namespaced attributes' do