Sha256: 5d74c955be7537ab8ef366b009e856c7add1c01790683e8fe6f3cd61f11fba5e
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
# encoding: utf-8 ## # Load Backup require File.expand_path( '../../lib/backup', __FILE__ ) ## # Use Mocha to mock with 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 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: #{ENV['rvm_ruby_string']}\n\n" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backup-3.0.18 | spec/spec_helper.rb |