mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix the test_framework generator tests
This commit is contained in:
parent
c7c3eac762
commit
6268fcdc30
3 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -58,6 +58,7 @@ module Rails
|
|||
:scaffold_controller => :scaffold_controller,
|
||||
:singleton => false,
|
||||
:stylesheets => true,
|
||||
:test_framework => nil,
|
||||
:template_engine => :erb
|
||||
},
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue