diff options
Diffstat (limited to 'railties/test/rails_generator_test.rb')
-rw-r--r-- | railties/test/rails_generator_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/rails_generator_test.rb b/railties/test/rails_generator_test.rb index 5934bb3e7b..3f63509384 100644 --- a/railties/test/rails_generator_test.rb +++ b/railties/test/rails_generator_test.rb @@ -44,7 +44,7 @@ class RailsGeneratorTest < Test::Unit::TestCase end def test_lookup_missing_generator - assert_raise(LoadError) { + assert_raise(MissingSourceFile) { Rails::Generator::Base.lookup('missing_generator').klass } end @@ -68,7 +68,7 @@ class RailsGeneratorTest < Test::Unit::TestCase def test_generator_spec spec = Rails::Generator::Base.lookup('working') assert_equal 'working', spec.name - assert_equal "#{RAILS_ROOT}/script/generators/working", spec.path + assert_equal "#{RAILS_ROOT}/generators/working", spec.path assert_equal :app, spec.source assert_nothing_raised { assert_match /WorkingGenerator$/, spec.klass.name } end |