tomo (owner)

Forks

Revisions

gist: 104830 Download_button fork
public
Public Clone URL: git://gist.github.com/104830.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
rspec_plugin_dir = File.expand_path(File.dirname(__FILE__) + '/../../vendor/plugins/rspec')
$LOAD_PATH.unshift("#{rspec_plugin_dir}/lib") if File.exist?(rspec_plugin_dir)
 
rspec_gem_dir = File.expand_path(File.dirname(__FILE__) + '/../../vendor/gems/rspec-1.2.6')
$LOAD_PATH.unshift("#{rspec_gem_dir}/lib") if File.exist?(rspec_gem_dir)
 
# Don't load rspec if running "rake gems:*"
unless ARGV.any? {|a| a =~ /^gems/}
 
begin
  require 'spec/rake/spectask'
rescue MissingSourceFile
...