Skip to content

Commit 33fbb4c

Browse files
committed
use --no-scope in tests for now
1 parent ba53e60 commit 33fbb4c

20 files changed

+185
-173
lines changed

integration_test/test/code_generation/app_with_defaults_test.exs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithDefaultsTest do
2727
with_installer_tmp("app_with_defaults", fn tmp_dir ->
2828
{app_root_path, _} = generate_phoenix_app(tmp_dir, "phx_blog")
2929

30-
mix_run!(~w(phx.gen.html Blog Post posts title:unique body:string status:enum:unpublished:published:deleted), app_root_path)
30+
mix_run!(~w(phx.gen.html Blog Post posts title:unique body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
3131

3232
modify_file(Path.join(app_root_path, "lib/phx_blog_web/router.ex"), fn file ->
3333
inject_before_final_end(file, """
@@ -50,7 +50,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithDefaultsTest do
5050
with_installer_tmp("app_with_defaults", fn tmp_dir ->
5151
{app_root_path, _} = generate_phoenix_app(tmp_dir, "phx_blog")
5252

53-
mix_run!(~w(phx.gen.html Blog Post posts title:unique body:string status:enum:unpublished:published:deleted order:integer:unique), app_root_path)
53+
mix_run!(~w(phx.gen.html Blog Post posts title:unique body:string status:enum:unpublished:published:deleted order:integer:unique --no-scope), app_root_path)
5454

5555
modify_file(Path.join(app_root_path, "lib/phx_blog_web/router.ex"), fn file ->
5656
inject_before_final_end(file, """
@@ -74,7 +74,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithDefaultsTest do
7474
with_installer_tmp("app_with_defaults", fn tmp_dir ->
7575
{app_root_path, _} = generate_phoenix_app(tmp_dir, "phx_blog")
7676

77-
mix_run!(~w(phx.gen.json Blog Post posts title:unique body:string status:enum:unpublished:published:deleted), app_root_path)
77+
mix_run!(~w(phx.gen.json Blog Post posts title:unique body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
7878

7979
modify_file(Path.join(app_root_path, "lib/phx_blog_web/router.ex"), fn file ->
8080
inject_before_final_end(file, """
@@ -97,7 +97,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithDefaultsTest do
9797
with_installer_tmp("app_with_defaults", fn tmp_dir ->
9898
{app_root_path, _} = generate_phoenix_app(tmp_dir, "phx_blog")
9999

100-
mix_run!(~w(phx.gen.json Blog Post posts title:unique body:string status:enum:unpublished:published:deleted), app_root_path)
100+
mix_run!(~w(phx.gen.json Blog Post posts title:unique body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
101101

102102
modify_file(Path.join(app_root_path, "lib/phx_blog_web/router.ex"), fn file ->
103103
inject_before_final_end(file, """
@@ -121,7 +121,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithDefaultsTest do
121121
with_installer_tmp("app_with_defaults", fn tmp_dir ->
122122
{app_root_path, _} = generate_phoenix_app(tmp_dir, "phx_blog", ["--live"])
123123

124-
mix_run!(~w(phx.gen.live Blog Post posts title:unique body:string p:boolean s:enum:a:b:c), app_root_path)
124+
mix_run!(~w(phx.gen.live Blog Post posts title:unique body:string p:boolean s:enum:a:b:c --no-scope), app_root_path)
125125

126126
modify_file(Path.join(app_root_path, "lib/phx_blog_web/router.ex"), fn file ->
127127
inject_before_final_end(file, """
@@ -147,7 +147,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithDefaultsTest do
147147
with_installer_tmp("app_with_defaults", fn tmp_dir ->
148148
{app_root_path, _} = generate_phoenix_app(tmp_dir, "phx_blog", ["--live"])
149149

150-
mix_run!(~w(phx.gen.live Blog Post posts title body:string public:boolean status:enum:unpublished:published:deleted), app_root_path)
150+
mix_run!(~w(phx.gen.live Blog Post posts title body:string public:boolean status:enum:unpublished:published:deleted --no-scope), app_root_path)
151151

152152
modify_file(Path.join(app_root_path, "lib/phx_blog_web/router.ex"), fn file ->
153153
inject_before_final_end(file, """

integration_test/test/code_generation/app_with_mssql_adapter_test.exs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithMSSQLAdapterTest do
88
{app_root_path, _} =
99
generate_phoenix_app(tmp_dir, "default_mssql_app", ["--database", "mssql"])
1010

11-
mix_run!(~w(phx.gen.html Blog Post posts title body:string status:enum:unpublished:published:deleted), app_root_path)
11+
mix_run!(~w(phx.gen.html Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
1212

1313
modify_file(Path.join(app_root_path, "lib/default_mssql_app_web/router.ex"), fn file ->
1414
inject_before_final_end(file, """
@@ -34,7 +34,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithMSSQLAdapterTest do
3434
{app_root_path, _} =
3535
generate_phoenix_app(tmp_dir, "default_mssql_app", ["--database", "mssql"])
3636

37-
mix_run!(~w(phx.gen.json Blog Post posts title body:string status:enum:unpublished:published:deleted), app_root_path)
37+
mix_run!(~w(phx.gen.json Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
3838

3939
modify_file(Path.join(app_root_path, "lib/default_mssql_app_web/router.ex"), fn file ->
4040
inject_before_final_end(file, """
@@ -60,7 +60,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithMSSQLAdapterTest do
6060
{app_root_path, _} =
6161
generate_phoenix_app(tmp_dir, "default_mssql_app", ["--database", "mssql", "--live"])
6262

63-
mix_run!(~w(phx.gen.live Blog Post posts title body:string status:enum:unpublished:published:deleted), app_root_path)
63+
mix_run!(~w(phx.gen.live Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
6464

6565
modify_file(Path.join(app_root_path, "lib/default_mssql_app_web/router.ex"), fn file ->
6666
inject_before_final_end(file, """
@@ -87,7 +87,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithMSSQLAdapterTest do
8787
with_installer_tmp("new with defaults", fn tmp_dir ->
8888
{app_root_path, _} = generate_phoenix_app(tmp_dir, "phx_blog", ["--database", "mssql", "--live"])
8989

90-
mix_run!(~w(phx.gen.html Accounts Group groups name), app_root_path)
90+
mix_run!(~w(phx.gen.html Accounts Group groups name --no-scope), app_root_path)
9191

9292
modify_file(Path.join(app_root_path, "lib/phx_blog_web/router.ex"), fn file ->
9393
inject_before_final_end(file, """
@@ -111,7 +111,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithMSSQLAdapterTest do
111111
with_installer_tmp("new with defaults", fn tmp_dir ->
112112
{app_root_path, _} = generate_phoenix_app(tmp_dir, "phx_blog", ["--database", "mssql", "--live"])
113113

114-
mix_run!(~w(phx.gen.html Accounts Group groups name), app_root_path)
114+
mix_run!(~w(phx.gen.html Accounts Group groups name --no-scope), app_root_path)
115115

116116
modify_file(Path.join(app_root_path, "lib/phx_blog_web/router.ex"), fn file ->
117117
inject_before_final_end(file, """
@@ -136,7 +136,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithMSSQLAdapterTest do
136136
with_installer_tmp("app_with_defaults (--live)", fn tmp_dir ->
137137
{app_root_path, _} = generate_phoenix_app(tmp_dir, "phx_blog", ["--database", "mssql", "--live"])
138138

139-
mix_run!(~w(phx.gen.html Accounts Group groups name), app_root_path)
139+
mix_run!(~w(phx.gen.html Accounts Group groups name --no-scope), app_root_path)
140140

141141
modify_file(Path.join(app_root_path, "lib/phx_blog_web/router.ex"), fn file ->
142142
inject_before_final_end(file, """
@@ -161,7 +161,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithMSSQLAdapterTest do
161161
with_installer_tmp("app_with_defaults", fn tmp_dir ->
162162
{app_root_path, _} = generate_phoenix_app(tmp_dir, "phx_blog", ["--database", "mssql", "--live"])
163163

164-
mix_run!(~w(phx.gen.html Accounts Group groups name), app_root_path)
164+
mix_run!(~w(phx.gen.html Accounts Group groups name --no-scope), app_root_path)
165165

166166
modify_file(Path.join(app_root_path, "lib/phx_blog_web/router.ex"), fn file ->
167167
inject_before_final_end(file, """

integration_test/test/code_generation/app_with_mysql_adapter_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithMySqlAdapterTest do
88
{app_root_path, _} =
99
generate_phoenix_app(tmp_dir, "default_mysql_app", ["--database", "mysql"])
1010

11-
mix_run!(~w(phx.gen.html Blog Post posts title body:string status:enum:unpublished:published:deleted), app_root_path)
11+
mix_run!(~w(phx.gen.html Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
1212

1313
modify_file(Path.join(app_root_path, "lib/default_mysql_app_web/router.ex"), fn file ->
1414
inject_before_final_end(file, """
@@ -34,7 +34,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithMySqlAdapterTest do
3434
{app_root_path, _} =
3535
generate_phoenix_app(tmp_dir, "default_mysql_app", ["--database", "mysql"])
3636

37-
mix_run!(~w(phx.gen.json Blog Post posts title body:string status:enum:unpublished:published:deleted), app_root_path)
37+
mix_run!(~w(phx.gen.json Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
3838

3939
modify_file(Path.join(app_root_path, "lib/default_mysql_app_web/router.ex"), fn file ->
4040
inject_before_final_end(file, """
@@ -60,7 +60,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithMySqlAdapterTest do
6060
{app_root_path, _} =
6161
generate_phoenix_app(tmp_dir, "default_mysql_app", ["--database", "mysql", "--live"])
6262

63-
mix_run!(~w(phx.gen.live Blog Post posts title body:string status:enum:unpublished:published:deleted), app_root_path)
63+
mix_run!(~w(phx.gen.live Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
6464

6565
modify_file(Path.join(app_root_path, "lib/default_mysql_app_web/router.ex"), fn file ->
6666
inject_before_final_end(file, """

integration_test/test/code_generation/app_with_no_options_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithNoOptionsTest do
5959
[
6060
"--no-halt",
6161
"-e",
62-
"spawn fn -> IO.gets('') && System.halt(0) end",
62+
"spawn fn -> IO.gets(~c[]) && System.halt(0) end",
6363
"-S",
6464
"mix",
6565
"phx.server"

integration_test/test/code_generation/app_with_sqlite3_adapter.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithSQLite3AdapterTest do
88
{app_root_path, _} =
99
generate_phoenix_app(tmp_dir, "default_sqlite3_app", ["--database", "sqlite3"])
1010

11-
mix_run!(~w(phx.gen.html Blog Post posts title body:string status:enum:unpublished:published:deleted), app_root_path)
11+
mix_run!(~w(phx.gen.html Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
1212

1313
modify_file(Path.join(app_root_path, "lib/default_sqlite3_app_web/router.ex"), fn file ->
1414
inject_before_final_end(file, """
@@ -34,7 +34,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithSQLite3AdapterTest do
3434
{app_root_path, _} =
3535
generate_phoenix_app(tmp_dir, "default_sqlite3_app", ["--database", "sqlite3"])
3636

37-
mix_run!(~w(phx.gen.json Blog Post posts title body:string status:enum:unpublished:published:deleted), app_root_path)
37+
mix_run!(~w(phx.gen.json Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
3838

3939
modify_file(Path.join(app_root_path, "lib/default_sqlite3_app_web/router.ex"), fn file ->
4040
inject_before_final_end(file, """
@@ -60,7 +60,7 @@ defmodule Phoenix.Integration.CodeGeneration.AppWithSQLite3AdapterTest do
6060
{app_root_path, _} =
6161
generate_phoenix_app(tmp_dir, "default_sqlite3_app", ["--database", "sqlite3", "--live"])
6262

63-
mix_run!(~w(phx.gen.live Blog Post posts title body:string status:enum:unpublished:published:deleted), app_root_path)
63+
mix_run!(~w(phx.gen.live Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), app_root_path)
6464

6565
modify_file(Path.join(app_root_path, "lib/default_sqlite3_app_web/router.ex"), fn file ->
6666
inject_before_final_end(file, """

integration_test/test/code_generation/umbrella_app_with_defaults_test.exs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ defmodule Phoenix.Integration.CodeGeneration.UmbrellaAppWithDefaultsTest do
2929
{app_root_path, _} = generate_phoenix_app(tmp_dir, "rainy_day", ["--umbrella"])
3030
web_root_path = Path.join(app_root_path, "apps/rainy_day_web")
3131

32-
mix_run!(~w(phx.gen.html Blog Post posts title:unique body:string status:enum:unpublished:published:deleted), web_root_path)
32+
mix_run!(~w(phx.gen.html Blog Post posts title:unique body:string status:enum:unpublished:published:deleted --no-scope), web_root_path)
3333

3434
modify_file(Path.join(web_root_path, "lib/rainy_day_web/router.ex"), fn file ->
3535
inject_before_final_end(file, """
@@ -53,7 +53,7 @@ defmodule Phoenix.Integration.CodeGeneration.UmbrellaAppWithDefaultsTest do
5353
{app_root_path, _} = generate_phoenix_app(tmp_dir, "rainy_day", ["--umbrella"])
5454
web_root_path = Path.join(app_root_path, "apps/rainy_day_web")
5555

56-
mix_run!(~w(phx.gen.html Blog Post posts title body:string status:enum:unpublished:published:deleted), web_root_path)
56+
mix_run!(~w(phx.gen.html Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), web_root_path)
5757

5858
modify_file(Path.join(web_root_path, "lib/rainy_day_web/router.ex"), fn file ->
5959
inject_before_final_end(file, """
@@ -78,7 +78,7 @@ defmodule Phoenix.Integration.CodeGeneration.UmbrellaAppWithDefaultsTest do
7878
{app_root_path, _} = generate_phoenix_app(tmp_dir, "rainy_day", ["--umbrella"])
7979
web_root_path = Path.join(app_root_path, "apps/rainy_day_web")
8080

81-
mix_run!(~w(phx.gen.json Blog Post posts title:unique body:string status:enum:unpublished:published:deleted), web_root_path)
81+
mix_run!(~w(phx.gen.json Blog Post posts title:unique body:string status:enum:unpublished:published:deleted --no-scope), web_root_path)
8282

8383
modify_file(Path.join(web_root_path, "lib/rainy_day_web/router.ex"), fn file ->
8484
inject_before_final_end(file, """
@@ -102,7 +102,7 @@ defmodule Phoenix.Integration.CodeGeneration.UmbrellaAppWithDefaultsTest do
102102
{app_root_path, _} = generate_phoenix_app(tmp_dir, "rainy_day", ["--umbrella"])
103103
web_root_path = Path.join(app_root_path, "apps/rainy_day_web")
104104

105-
mix_run!(~w(phx.gen.json Blog Post posts title body:string status:enum:unpublished:published:deleted), web_root_path)
105+
mix_run!(~w(phx.gen.json Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), web_root_path)
106106

107107
modify_file(Path.join(web_root_path, "lib/rainy_day_web/router.ex"), fn file ->
108108
inject_before_final_end(file, """
@@ -127,7 +127,7 @@ defmodule Phoenix.Integration.CodeGeneration.UmbrellaAppWithDefaultsTest do
127127
{app_root_path, _} = generate_phoenix_app(tmp_dir, "rainy_day", ["--umbrella", "--live"])
128128
web_root_path = Path.join(app_root_path, "apps/rainy_day_web")
129129

130-
mix_run!(~w(phx.gen.live Blog Post posts title:unique body:string status:enum:unpublished:published:deleted), web_root_path)
130+
mix_run!(~w(phx.gen.live Blog Post posts title:unique body:string status:enum:unpublished:published:deleted --no-scope), web_root_path)
131131

132132
modify_file(Path.join(web_root_path, "lib/rainy_day_web/router.ex"), fn file ->
133133
inject_before_final_end(file, """
@@ -154,7 +154,7 @@ defmodule Phoenix.Integration.CodeGeneration.UmbrellaAppWithDefaultsTest do
154154
{app_root_path, _} = generate_phoenix_app(tmp_dir, "rainy_day", ["--umbrella", "--live"])
155155
web_root_path = Path.join(app_root_path, "apps/rainy_day_web")
156156

157-
mix_run!(~w(phx.gen.live Blog Post posts title body:string status:enum:unpublished:published:deleted), web_root_path)
157+
mix_run!(~w(phx.gen.live Blog Post posts title body:string status:enum:unpublished:published:deleted --no-scope), web_root_path)
158158

159159
modify_file(Path.join(web_root_path, "lib/rainy_day_web/router.ex"), fn file ->
160160
inject_before_final_end(file, """

lib/mix/phoenix/scope.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ defmodule Mix.Phoenix.Scope do
77
alias: nil,
88
assign_key: nil,
99
access_path: nil,
10+
schema_table: nil,
1011
schema_key: nil,
1112
schema_type: nil
1213

lib/mix/tasks/phx.gen.auth.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ defmodule Mix.Tasks.Phx.Gen.Auth do
157157
hashing_library = build_hashing_library!(opts)
158158

159159
context_args = OptionParser.to_argv(opts, switches: @switches) ++ parsed
160-
{context, schema} = Gen.Context.build(context_args, __MODULE__)
160+
{context, schema} = Gen.Context.build(context_args ++ ["--no-scope"], __MODULE__)
161161

162162
context = put_live_option(context)
163163
Gen.Context.prompt_for_code_injection(context)

lib/mix/tasks/phx.gen.html.ex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,11 @@ defmodule Mix.Tasks.Phx.Gen.Html do
107107
{context, schema} = Gen.Context.build(args)
108108
Gen.Context.prompt_for_code_injection(context)
109109

110-
conn_scope = if schema.scope do
111-
"conn.assigns.#{schema.scope.assign_key}"
110+
{conn_scope, context_scope_prefix} = if schema.scope do
111+
base = "conn.assigns.#{schema.scope.assign_key}"
112+
{base, "#{base}, "}
112113
else
113-
""
114+
{"", ""}
114115
end
115116

116117
binding = [
@@ -120,7 +121,7 @@ defmodule Mix.Tasks.Phx.Gen.Html do
120121
scope: schema.scope,
121122
inputs: inputs(schema),
122123
conn_scope: conn_scope,
123-
context_scope_prefix: "#{conn_scope}, "
124+
context_scope_prefix: context_scope_prefix
124125
]
125126
paths = Mix.Phoenix.generator_paths()
126127

lib/mix/tasks/phx.gen.json.ex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ defmodule Mix.Tasks.Phx.Gen.Json do
103103
{context, schema} = Gen.Context.build(args)
104104
Gen.Context.prompt_for_code_injection(context)
105105

106-
conn_scope = if schema.scope do
107-
"conn.assigns.#{schema.scope.assign_key}"
106+
{conn_scope, context_scope_prefix} = if schema.scope do
107+
base = "conn.assigns.#{schema.scope.assign_key}"
108+
{base, "#{base}, "}
108109
else
109-
""
110+
{"", ""}
110111
end
111112

112113
binding = [
@@ -117,7 +118,7 @@ defmodule Mix.Tasks.Phx.Gen.Json do
117118
gettext?: Code.ensure_loaded?(Module.concat(context.web_module, "Gettext")),
118119
primary_key: schema.opts[:primary_key] || :id,
119120
conn_scope: conn_scope,
120-
context_scope_prefix: "#{conn_scope}, "
121+
context_scope_prefix: context_scope_prefix
121122
]
122123

123124
paths = Mix.Phoenix.generator_paths()

lib/mix/tasks/phx.gen.live.ex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,11 @@ defmodule Mix.Tasks.Phx.Gen.Live do
120120

121121
Gen.Context.prompt_for_code_injection(context)
122122

123-
socket_scope = if schema.scope do
124-
"socket.assigns.#{schema.scope.assign_key}"
123+
{socket_scope, context_scope_prefix} = if schema.scope do
124+
base = "socket.assigns.#{schema.scope.assign_key}"
125+
{base, "#{base}, "}
125126
else
126-
""
127+
{"", ""}
127128
end
128129

129130
binding = [
@@ -133,7 +134,7 @@ defmodule Mix.Tasks.Phx.Gen.Live do
133134
scope: schema.scope,
134135
inputs: inputs(schema),
135136
socket_scope: socket_scope,
136-
context_scope_prefix: "#{socket_scope}, "
137+
context_scope_prefix: context_scope_prefix
137138
]
138139
paths = Mix.Phoenix.generator_paths()
139140

priv/templates/phx.gen.context/fixtures.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
<%= schema.fixture_params |> Enum.map(fn {key, code} -> " #{key}: #{code}" end) |> Enum.join(",\n") %>
1212
})
1313

14-
{:ok, <%= schema.singular %>} = <%= inspect context.module %>.create_<%= schema.singular %>(scope, attrs)<% else %>{:ok, <%= schema.singular %>} =
14+
{:ok, <%= schema.singular %>} = <%= inspect context.module %>.create_<%= schema.singular %>(scope, attrs)<% else %>
15+
{:ok, <%= schema.singular %>} =
1516
attrs
1617
|> Enum.into(%{
1718
<%= schema.fixture_params |> Enum.map(fn {key, code} -> " #{key}: #{code}" end) |> Enum.join(",\n") %>
1819
})
1920
|> <%= inspect context.module %>.create_<%= schema.singular %>()
20-
<% end %>
21+
<% end %>
2122
<%= schema.singular %>
2223
end

0 commit comments

Comments
 (0)