Test for element attributes without namespaces.
This commit is contained in:
parent
3b2279e410
commit
798372d099
|
@ -15,7 +15,7 @@ describe Oga::XML::Parser do
|
||||||
end
|
end
|
||||||
|
|
||||||
example 'do not set a namespace' do
|
example 'do not set a namespace' do
|
||||||
@element.namespace.nil?.should == true
|
@element.namespace.should be_nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -49,6 +49,10 @@ describe Oga::XML::Parser do
|
||||||
example 'set the bar attribute' do
|
example 'set the bar attribute' do
|
||||||
@element.attribute('bar').value.should == 'baz'
|
@element.attribute('bar').value.should == 'baz'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
example 'do not set the attribute namespace' do
|
||||||
|
@element.attribute('bar').namespace.should be_nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'elements with namespaced attributes' do
|
context 'elements with namespaced attributes' do
|
||||||
|
|
Loading…
Reference in New Issue