spec/spec_helper.rb in blather-0.3.4 vs spec/spec_helper.rb in blather-0.4.0
- old
+ new
@@ -5,10 +5,12 @@
require 'rubygems'
require 'minitest/spec'
require 'mocha'
require 'mocha/expectation_error'
+MiniTest::Unit.autorun
+
module MiniTest
require 'pathname' if MINI_DIR =~ %r{^./}
module Assertions
def assert_change(stmt, args = {}, msg = nil)
@@ -34,9 +36,8 @@
def must_change *args, &block
return MiniTest::Spec.current.assert_change(*args, &self)
end
end
-include Blather
-include MiniTest
-
-Unit.autorun
+def parse_stanza(xml)
+ Nokogiri::XML.parse xml
+end