spec/spec_helper.rb in punchblock-1.2.0 vs spec/spec_helper.rb in punchblock-1.3.0
- old
+ new
@@ -1,9 +1,8 @@
# encoding: utf-8
require 'punchblock'
-require 'mocha'
require 'countdownlatch'
require 'logger'
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
@@ -27,9 +26,14 @@
Nokogiri::XML.parse xml, nil, nil, Nokogiri::XML::ParseOptions::NOBLANKS
end
def import_stanza(xml)
Blather::Stanza.import parse_stanza(xml).root
+end
+
+def stub_uuids(value)
+ RubyAMI.stubs :new_uuid => value
+ Punchblock.stubs :new_uuid => value
end
# FIXME: change this to rayo_event? It can be ambigous
shared_examples_for 'event' do
its(:target_call_id) { should be == '9f00061' }