spec/blather/stanza/x_spec.rb in blather-0.8.3 vs spec/blather/stanza/x_spec.rb in blather-0.8.4

- old
+ new

@@ -137,10 +137,12 @@ end describe Blather::Stanza::X::Field do subject { Blather::Stanza::X::Field.new nil } - its(:namespace) { subject.href.should be == 'jabber:x:data' } + it "should have the namespace 'jabber:x:data'" do + subject.namespace.href.should be == 'jabber:x:data' + end it 'will auto-inherit nodes' do n = parse_stanza "<field type='text-single' var='music' label='Music from the time of Shakespeare' />" i = Blather::Stanza::X::Field.new n.root i.type.should == 'text-single'