Sha256: b8e5cf02d0887d647278bc66c3f2450817badd99ee7e84fa1a3bfe9207c42510
Contents?: true
Size: 725 Bytes
Versions: 12
Compression:
Stored size: 725 Bytes
Contents
require 'rubygems' gem 'rspec' require 'spec' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'sdoc_all' Spec::Runner.configure do |config| config.prepend_before do SdocAll::Base.stub!(:system) SdocAll::Base.stub!(:remove_if_present) class <<Dir alias original_chdir chdir end Dir.stub!(:chdir).and_yield Net::FTP.stub!(:open) File.stub!(:symlink) SdocAll.constants.each do |constant| klass = SdocAll.const_get(constant) if klass.is_a?(Class) && klass.superclass == SdocAll::Base klass.stub!(:sources_path).and_return(Pathname.new("sources/#{constant.downcase}")) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems