yak(credo-strict-tuned-config-both-apps-x02d): credo strict, tuned config (both apps)
This commit is contained in:
@@ -5,6 +5,8 @@ defmodule Blogex.Test.Setup do
|
||||
|
||||
import Blogex.Test.PostBuilder
|
||||
|
||||
alias Blogex.Test.FakeBlog
|
||||
|
||||
@doc """
|
||||
Starts a FakeBlog with a standard set of posts.
|
||||
Returns `%{blog: module, posts: posts}`.
|
||||
@@ -13,9 +15,9 @@ defmodule Blogex.Test.Setup do
|
||||
posts = Keyword.get(opts, :posts, default_posts())
|
||||
blog_opts = Keyword.drop(opts, [:posts])
|
||||
|
||||
{:ok, _} = Blogex.Test.FakeBlog.start(posts, blog_opts)
|
||||
{:ok, _} = FakeBlog.start(posts, blog_opts)
|
||||
|
||||
Map.merge(context, %{blog: Blogex.Test.FakeBlog, posts: posts})
|
||||
Map.merge(context, %{blog: FakeBlog, posts: posts})
|
||||
end
|
||||
|
||||
@doc "A small set of posts covering common scenarios."
|
||||
|
||||
Reference in New Issue
Block a user