Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
Fix an odd test-unit NameError
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Aug 17, 2010
1 parent 8c07d81 commit 47f07a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'rubygems'
gem 'test-unit'
require 'test/unit'
require 'rails/all'
require 'rails/generators'
Expand Down Expand Up @@ -53,7 +54,7 @@ def generator_list
:machinist => ['model'],
:authlogic => ['session'],
:jquery => ['install'],
:koala => ['install'],
:koala => ['install'],
:shoulda => ['controller']
}
end
Expand All @@ -63,15 +64,15 @@ def path_prefix(name)
when :rails
'rails/generators'
else
'generators'
'generators'
end
end

def require_generators(generator_list)
generator_list.each do |name, generators|
generators.each do |generator_name|
require File.join(path_prefix(name), name.to_s, generator_name.to_s, "#{generator_name}_generator")
end
end
end
end
alias :require_generator :require_generators
Expand Down

0 comments on commit 47f07a8

Please sign in to comment.