Browse files

helpful message for new rspec install

  • Loading branch information...
1 parent aed9b52 commit d2cdea1ddfe2e6a23d4e29f0e7093ad571804e50 @patmaddox committed Jun 19, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/tasks/000-rspec.rake
View
4 lib/tasks/000-rspec.rake
@@ -2,13 +2,17 @@ desc "Check out the rspec and rspec-rails plugins to vendor/plugins"
task :fetch_rspec do
plugins_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'vendor', 'plugins'))
+ new_rspec = false
%w(rspec rspec-rails).each do |plugin|
if File.exist?(File.join(plugins_dir, plugin))
puts "Updating #{plugin}"
puts `cd #{File.join(plugins_dir, plugin)} && git pull --rebase`
else
+ new_rspec = true
puts "Fetching #{plugin}"
puts `cd #{plugins_dir} && git clone git://github.com/dchelimsky/#{plugin}.git`
end
end
+
+ puts "It looks like you installed RSpec for the first time. You may want to run\n\t./script/generate rspec" if new_rspec
end

0 comments on commit d2cdea1

Please sign in to comment.