Sha256: c9800a58b333671bd29b8b19c418274dcaefc21430842cb8cda801cf10eb20ad
Contents?: true
Size: 780 Bytes
Versions: 1
Compression:
Stored size: 780 Bytes
Contents
# encoding: utf-8 ## # Use Bundler require 'rubygems' if RUBY_VERSION < '1.9' require 'bundler/setup' ## # Load Backup require 'backup' ## # Use Mocha to mock with RSpec require 'rspec' RSpec.configure do |config| config.mock_with :mocha config.before(:each) do FileUtils.stubs(:mkdir_p) [:message, :error, :warn, :normal, :silent].each do |message_type| Backup::Logger.stubs(message_type) end Backup::Model.extension = 'tar' end end Backup.send(:remove_const, :TRIGGER) if defined? Backup::TRIGGER Backup.send(:remove_const, :TIME) if defined? Backup::TIME module Backup TRIGGER = 'myapp' TIME = Time.now.strftime("%Y.%m.%d.%H.%M.%S") end unless @_put_ruby_version puts @_put_ruby_version = "\n\nRuby version: #{RUBY_DESCRIPTION}\n\n" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backup-3.0.20 | spec/spec_helper.rb |