mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix indentation of generated controller test
``` # before module Bukkits class UsersControllerTest < ActionDispatch::IntegrationTest include Engine.routes.url_helpers setup do @user = bukkits_users(:one) end ``` ``` # after module Bukkits class UsersControllerTest < ActionDispatch::IntegrationTest include Engine.routes.url_helpers setup do @user = bukkits_users(:one) end ```
This commit is contained in:
parent
cd53b05be8
commit
703f1052ae
2 changed files with 3 additions and 3 deletions
|
@ -2,10 +2,10 @@ require 'test_helper'
|
|||
|
||||
<% module_namespacing do -%>
|
||||
class <%= controller_class_name %>ControllerTest < ActionDispatch::IntegrationTest
|
||||
<% if mountable_engine? -%>
|
||||
<%- if mountable_engine? -%>
|
||||
include Engine.routes.url_helpers
|
||||
|
||||
<% end -%>
|
||||
<%- end -%>
|
||||
setup do
|
||||
@<%= singular_table_name %> = <%= fixture_name %>(:one)
|
||||
end
|
||||
|
|
|
@ -5,7 +5,7 @@ class <%= controller_class_name %>ControllerTest < ActionDispatch::IntegrationTe
|
|||
<%- if mountable_engine? -%>
|
||||
include Engine.routes.url_helpers
|
||||
|
||||
<% end -%>
|
||||
<%- end -%>
|
||||
setup do
|
||||
@<%= singular_table_name %> = <%= fixture_name %>(:one)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue