2010-10-31 22:21:26 -04:00
|
|
|
# Copyright (c) 2010 Michael Dvorkin
|
|
|
|
#
|
|
|
|
# Awesome Print is freely distributable under the terms of MIT license.
|
|
|
|
# See LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Running specs with Ruby 1.8.7 and RSpec 1.3+:
|
2010-11-01 01:34:50 -04:00
|
|
|
# $ rake spec # Entire spec suite.
|
|
|
|
# $ ruby -rubygems spec/logger_spec.rb # Individual spec file.
|
2010-10-31 22:21:26 -04:00
|
|
|
#
|
|
|
|
# Running specs with Ruby 1.9.2 and RSpec 2.0+:
|
2010-11-01 01:34:50 -04:00
|
|
|
# $ rake spec # Entire spec suite.
|
|
|
|
# $ rspec spec/logger_spec.rb # Individual spec file.
|
2010-10-31 22:21:26 -04:00
|
|
|
#
|
2010-03-25 00:31:59 -04:00
|
|
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
|
|
require 'ap'
|
|
|
|
|
2010-10-31 19:10:08 -04:00
|
|
|
if RUBY_VERSION.to_f < 1.9
|
|
|
|
require 'spec'
|
|
|
|
require 'spec/autorun'
|
|
|
|
require 'rubygems'
|
2010-04-08 22:57:58 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def stub_dotfile!
|
|
|
|
dotfile = File.join(ENV["HOME"], ".aprc")
|
|
|
|
File.should_receive(:readable?).at_least(:once).with(dotfile).and_return(false)
|
2010-03-25 00:31:59 -04:00
|
|
|
end
|