spec/spec_helper.rb in yard-0.6.3 vs spec/spec_helper.rb in yard-0.6.4
- old
+ new
@@ -1,7 +1,11 @@
require "rubygems"
-require "spec"
+begin
+ require "rspec"
+rescue LoadError
+ require "spec"
+end
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'yard'))
def parse_file(file, thisfile = __FILE__, log_level = log.level, ext = '.rb.txt')
Registry.clear
@@ -72,6 +76,6 @@
end
end
end
end
-include YARD
\ No newline at end of file
+include YARD