@@ -13,28 +13,28 @@ defmodule SSHKit.ContextTest do
1313 end
1414
1515 describe "path/2" do
16- test "sets the path for the context " do
16+ test "sets the path" do
1717 context = Context . path ( @ empty , "/var/www/app" )
1818 assert context . path == "/var/www/app"
1919 end
2020 end
2121
2222 describe "umask/2" do
23- test "sets the file permission mask for the context " do
23+ test "sets the file permission mask" do
2424 context = Context . umask ( @ empty , "077" )
2525 assert context . umask == "077"
2626 end
2727 end
2828
2929 describe "user/2" do
30- test "sets the user for the context " do
30+ test "sets the user" do
3131 context = Context . user ( @ empty , "meg" )
3232 assert context . user == "meg"
3333 end
3434 end
3535
3636 describe "group/2" do
37- test "sets the group for the context " do
37+ test "sets the group" do
3838 context = Context . group ( @ empty , "stripes" )
3939 assert context . group == "stripes"
4040 end
@@ -126,6 +126,11 @@ defmodule SSHKit.ContextTest do
126126 assert command == "cd /var/www && /usr/bin/env ls -l"
127127 end
128128
129+ test "without any options" do
130+ command = @ empty |> Context . build ( "uptime" )
131+ assert command == "/usr/bin/env uptime"
132+ end
133+
129134 test "with all options" do
130135 command =
131136 @ empty
0 commit comments