spec/blather/stanza_spec.rb in blather-0.4.7 vs spec/blather/stanza_spec.rb in blather-0.4.8

- old
+ new

@@ -5,11 +5,11 @@ proc { Blather::Stanza.next_id }.must_change 'Blather::Stanza.next_id' end it 'provides a handler registration mechanism' do class Registration < Blather::Stanza; register :handler_test, :handler, 'test:namespace'; end - Registration.handler_heirarchy.must_include :handler_test + Registration.handler_hierarchy.must_include :handler_test Blather::Stanza.handler_list.must_include :handler_test end it 'can register based on handler' do class RegisterHandler < Blather::Stanza; register :register_handler; end @@ -22,11 +22,11 @@ end it 'can register subclass handlers' do class SuperClassRegister < Blather::Stanza; register :super_class; end class SubClassRegister < SuperClassRegister; register :sub_class; end - SuperClassRegister.handler_heirarchy.wont_include :sub_class - SubClassRegister.handler_heirarchy.must_include :super_class + SuperClassRegister.handler_hierarchy.wont_include :sub_class + SubClassRegister.handler_hierarchy.must_include :super_class end it 'can import a node' do s = Blather::Stanza.import Blather::XMPPNode.new('foo') s.element_name.must_equal 'foo'