start new:
tmux
start new with session name:
tmux new -s myname
defmodule MyAppWeb.PageLiveTest do | |
use MyAppWeb.ConnCase | |
import Phoenix.LiveViewTest | |
@tag :tmp_dir | |
test "disconnected and connected render", %{conn: conn, tmp_dir: tmp_dir} do | |
{:ok, page_live, disconnected_html} = live(conn, "/") | |
assert disconnected_html =~ "Welcome to Phoenix!" |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.