提交 6268fcdc 编写于 作者: C Carl Lerche

Fix the test_framework generator tests

上级 c7c3eac7
......@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册