Allow direct access to draft and scheduled posts by slug
This commit is contained in:
@@ -70,10 +70,10 @@ defmodule Blogex.RouterTest do
|
||||
assert conn.status == 404
|
||||
end
|
||||
|
||||
test "returns 404 for draft post" do
|
||||
test "returns 200 for draft post accessed by slug" do
|
||||
conn = call(:get, "/draft")
|
||||
|
||||
assert conn.status == 404
|
||||
assert conn.status == 200
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user