spec/spec_helper.rb in xsd-reader-0.1.0 vs spec/spec_helper.rb in xsd-reader-0.2.0
- old
+ new
@@ -2,11 +2,17 @@
#
# Copyright (C) 2010 Mohammed Morsi <movitto@yahoo.com>
# Licensed under the AGPLv3+ http://www.gnu.org/licenses/agpl.txt
require 'rspec'
+require 'logger'
+begin
+ require 'byebug'
+rescue LoadError => e
+ Logger.new(STDOUT).warn("Could not load byebug, continuing without it")
+end
+
CURRENT_DIR=File.dirname(__FILE__)
$: << File.expand_path(CURRENT_DIR + "/../lib")
require 'xsd_reader'
-require 'byebug'
\ No newline at end of file