Permalink
Browse files

Fixed spec dependencies

  • Loading branch information...
jferris committed Dec 3, 2009
1 parent f154e12 commit 0a6882e212cd0149865d8300cd10a8caac165139
Showing with 16 additions and 0 deletions.
  1. +16 −0 Rakefile
View
@@ -5,6 +5,22 @@ require 'rake/gempackagetask'
desc 'Default: run the specs and metrics.'
task :default => [:spec, :metrics]
task :rails_root do
rails_root = File.join('tmp', 'rails_root')
unless File.exist?(rails_root)
FileUtils.mkdir_p(File.dirname(rails_root))
command = "rails #{rails_root}"
output = `#{command} 2>&1`
if $? == 0
FileUtils.ln_s(FileUtils.pwd, File.join(rails_root, 'vendor', 'plugins'))
else
$stderr.puts "Command failed with status #{$?}:"
$stderr.puts command
$stderr.puts output
end
end
end
begin
require 'spec/rake/spectask'

0 comments on commit 0a6882e

Please sign in to comment.