Sha256: cded1dce0de42ea72ab5c4fc884ff2c2da510b07c5286b68be9ef19cc21baf4e
Contents?: true
Size: 729 Bytes
Versions: 3
Compression:
Stored size: 729 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'rspec' require 'sdoc_all' require 'stringio' RSpec.configure do |config| config.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) @progress_io = StringIO.new Progress.stub!(:io).and_return(@progress_io) 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sdoc_all-1.3.3 | spec/spec_helper.rb |
sdoc_all-1.3.2 | spec/spec_helper.rb |
sdoc_all-1.3.1 | spec/spec_helper.rb |