File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -107,23 +107,22 @@ def test_model_test_is_skipped_if_test_framework_is_given
107
107
end
108
108
109
109
private
110
-
111
- def run_generator_instance
112
- commands = [ ]
113
- command_stub ||= -> ( command , * args ) { commands << [ command , * args ] }
114
-
115
- @rails_commands = [ ]
116
- @rails_command_stub ||= -> ( command , * _ ) { @rails_commands << command }
117
-
118
- content = nil
119
- generator . stub ( :execute_command , command_stub ) do
120
- generator . stub ( :rails_command , @rails_command_stub ) do
121
- content = super
110
+ def run_generator_instance
111
+ commands = [ ]
112
+ command_stub ||= -> ( command , * args ) { commands << [ command , * args ] }
113
+
114
+ @rails_commands = [ ]
115
+ @rails_command_stub ||= -> ( command , * _ ) { @rails_commands << command }
116
+
117
+ content = nil
118
+ generator . stub ( :execute_command , command_stub ) do
119
+ generator . stub ( :rails_command , @rails_command_stub ) do
120
+ content = super
121
+ end
122
122
end
123
- end
124
123
125
- @bundle_commands = commands . filter { |command , _ | command == :bundle }
124
+ @bundle_commands = commands . filter { |command , _ | command == :bundle }
126
125
127
- content
128
- end
126
+ content
127
+ end
129
128
end
You can’t perform that action at this time.
0 commit comments