Fix the test_framework generator tests

This commit is contained in:
Carl Lerche 2010-01-28 10:03:47 -08:00
parent c7c3eac762
commit 6268fcdc30
3 changed files with 4 additions and 1 deletions

View File

@ -91,6 +91,8 @@ module Rails
def method_missing(method, *args)
method = method.to_s.sub(/=$/, '').to_sym
return @options[method] if args.empty?
if method == :rails
namespace, configuration = :rails, args.shift
elsif args.first.is_a?(Hash)

View File

@ -58,6 +58,7 @@ module Rails
:scaffold_controller => :scaffold_controller,
:singleton => false,
:stylesheets => true,
:test_framework => nil,
:template_engine => :erb
},

View File

@ -9,7 +9,7 @@ Rails.application.config.root = Rails.root
require 'rails/generators'
require 'rails/generators/test_case'
Rails::Generators.configure!
require 'active_record'
require 'action_dispatch'