Skip to content

Commit

Permalink
Moved tasks/* to shoulda/tasks/*
Browse files Browse the repository at this point in the history
 * Will better support shoulda when used as a gem
 * Added shoulda/tasks.rb to automate loading the tasks
 * Added tasks/shoulda.rake for backwards compatibility
 * Modified Rakefile to support new task location
  • Loading branch information
technicalpickles authored and rmm5t committed Sep 14, 2008
1 parent 47f8f58 commit 2629a9a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Rakefile
Expand Up @@ -33,7 +33,5 @@ end
desc 'Default: run tests.'
task :default => ['test']

Dir['tasks/*.rake'].each do |f|
load f
end
require 'lib/shoulda/tasks'

3 changes: 3 additions & 0 deletions lib/shoulda/tasks.rb
@@ -0,0 +1,3 @@
Dir[File.join(File.basename(__FILE__), 'tasks', '*.rake')].each do |f|
load f
end
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions tasks/shoulda.rake
@@ -0,0 +1 @@
require 'shoulda/tasks'

0 comments on commit 2629a9a

Please sign in to comment.