Skip to content

Commit

Permalink
deploy: 3d7df15
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster committed Aug 26, 2024
1 parent b2eb790 commit a9c118c
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 89 deletions.
6 changes: 3 additions & 3 deletions Wanda.DataCase.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ <h1 class="signature" translate="no">errors_on(changeset)</h1>

<section class="docstring">

<p>A helper that transforms changeset errors into a map of messages.</p><pre><code class="makeup elixir" translate="no"><span class="n">assert</span><span class="w"> </span><span class="p" data-group-id="1894081875-1">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="n">changeset</span><span class="p" data-group-id="1894081875-1">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Accounts</span><span class="o">.</span><span class="n">create_user</span><span class="p" data-group-id="1894081875-2">(</span><span class="p" data-group-id="1894081875-3">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;short&quot;</span><span class="p" data-group-id="1894081875-3">}</span><span class="p" data-group-id="1894081875-2">)</span><span class="w">
</span><span class="n">assert</span><span class="w"> </span><span class="s">&quot;password is too short&quot;</span><span class="w"> </span><span class="ow">in</span><span class="w"> </span><span class="n">errors_on</span><span class="p" data-group-id="1894081875-4">(</span><span class="n">changeset</span><span class="p" data-group-id="1894081875-4">)</span><span class="o">.</span><span class="n">password</span><span class="w">
</span><span class="n">assert</span><span class="w"> </span><span class="p" data-group-id="1894081875-5">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1894081875-6">[</span><span class="s">&quot;password is too short&quot;</span><span class="p" data-group-id="1894081875-6">]</span><span class="p" data-group-id="1894081875-5">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">errors_on</span><span class="p" data-group-id="1894081875-7">(</span><span class="n">changeset</span><span class="p" data-group-id="1894081875-7">)</span></code></pre>
<p>A helper that transforms changeset errors into a map of messages.</p><pre><code class="makeup elixir" translate="no"><span class="n">assert</span><span class="w"> </span><span class="p" data-group-id="8585407447-1">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="n">changeset</span><span class="p" data-group-id="8585407447-1">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Accounts</span><span class="o">.</span><span class="n">create_user</span><span class="p" data-group-id="8585407447-2">(</span><span class="p" data-group-id="8585407447-3">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;short&quot;</span><span class="p" data-group-id="8585407447-3">}</span><span class="p" data-group-id="8585407447-2">)</span><span class="w">
</span><span class="n">assert</span><span class="w"> </span><span class="s">&quot;password is too short&quot;</span><span class="w"> </span><span class="ow">in</span><span class="w"> </span><span class="n">errors_on</span><span class="p" data-group-id="8585407447-4">(</span><span class="n">changeset</span><span class="p" data-group-id="8585407447-4">)</span><span class="o">.</span><span class="n">password</span><span class="w">
</span><span class="n">assert</span><span class="w"> </span><span class="p" data-group-id="8585407447-5">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="8585407447-6">[</span><span class="s">&quot;password is too short&quot;</span><span class="p" data-group-id="8585407447-6">]</span><span class="p" data-group-id="8585407447-5">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">errors_on</span><span class="p" data-group-id="8585407447-7">(</span><span class="n">changeset</span><span class="p" data-group-id="8585407447-7">)</span></code></pre>
</section>
</section>
<section class="detail" id="setup_sandbox/1">
Expand Down
2 changes: 1 addition & 1 deletion Wanda.Executions.Execution.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h1 class="signature" translate="no">changeset(execution, params)</h1>

<div class="specs">

<pre translate="no"><span class="attribute">@spec</span> changeset(<a href="#t:t/0">t</a>() | <a href="https://hexdocs.pm/ecto/3.12.1/Ecto.Changeset.html#t:t/0">Ecto.Changeset.t</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">map</a>()) :: <a href="https://hexdocs.pm/ecto/3.12.1/Ecto.Changeset.html#t:t/0">Ecto.Changeset.t</a>()</pre>
<pre translate="no"><span class="attribute">@spec</span> changeset(<a href="#t:t/0">t</a>() | <a href="https://hexdocs.pm/ecto/3.12.2/Ecto.Changeset.html#t:t/0">Ecto.Changeset.t</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">map</a>()) :: <a href="https://hexdocs.pm/ecto/3.12.2/Ecto.Changeset.html#t:t/0">Ecto.Changeset.t</a>()</pre>

</div>

Expand Down
Loading

0 comments on commit a9c118c

Please sign in to comment.