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

Fix the test_framework generator tests

上级 c7c3eac7
...@@ -91,6 +91,8 @@ def initialize ...@@ -91,6 +91,8 @@ def initialize
def method_missing(method, *args) def method_missing(method, *args)
method = method.to_s.sub(/=$/, '').to_sym method = method.to_s.sub(/=$/, '').to_sym
return @options[method] if args.empty?
if method == :rails if method == :rails
namespace, configuration = :rails, args.shift namespace, configuration = :rails, args.shift
elsif args.first.is_a?(Hash) elsif args.first.is_a?(Hash)
......
...@@ -58,6 +58,7 @@ module Generators ...@@ -58,6 +58,7 @@ module Generators
:scaffold_controller => :scaffold_controller, :scaffold_controller => :scaffold_controller,
:singleton => false, :singleton => false,
:stylesheets => true, :stylesheets => true,
:test_framework => nil,
:template_engine => :erb :template_engine => :erb
}, },
......
...@@ -9,7 +9,7 @@ def self.root ...@@ -9,7 +9,7 @@ def self.root
require 'rails/generators' require 'rails/generators'
require 'rails/generators/test_case' require 'rails/generators/test_case'
Rails::Generators.configure!
require 'active_record' require 'active_record'
require 'action_dispatch' require 'action_dispatch'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册