Permalink
Browse files

Fix the test_framework generator tests

  • Loading branch information...
1 parent c7c3eac commit 6268fcdc3083496d3336cfcecac2868e17f8d3b6 Carl Lerche committed Jan 28, 2010
@@ -91,6 +91,8 @@ def initialize
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)
@@ -58,6 +58,7 @@ module Generators
:scaffold_controller => :scaffold_controller,
:singleton => false,
:stylesheets => true,
+ :test_framework => nil,
:template_engine => :erb
},
@@ -9,7 +9,7 @@ def self.root
require 'rails/generators'
require 'rails/generators/test_case'
-
+Rails::Generators.configure!
require 'active_record'
require 'action_dispatch'

0 comments on commit 6268fcd

Please sign in to comment.