@@ -39,6 +39,26 @@ func TestParseArgsStartCreate(t *testing.T) {
3939 test .Equals (t , true , configuration .StartCreate )
4040}
4141
42+ func TestParseArgsStartJoin (t * testing.T ) {
43+ configuration := GetDefaultConfiguration ()
44+
45+ command , parameters , configuration := ParseArgs ([]string {"mob" , "start" , "--join" }, configuration )
46+
47+ test .Equals (t , "start" , command )
48+ test .Equals (t , "" , strings .Join (parameters , "" ))
49+ test .Equals (t , true , configuration .StartJoin )
50+ }
51+
52+ func TestParseArgsStartJoinShort (t * testing.T ) {
53+ configuration := GetDefaultConfiguration ()
54+
55+ command , parameters , configuration := ParseArgs ([]string {"mob" , "start" , "-j" }, configuration )
56+
57+ test .Equals (t , "start" , command )
58+ test .Equals (t , "" , strings .Join (parameters , "" ))
59+ test .Equals (t , true , configuration .StartJoin )
60+ }
61+
4262func TestParseArgsDoneNoSquash (t * testing.T ) {
4363 configuration := GetDefaultConfiguration ()
4464 test .Equals (t , Squash , configuration .DoneSquash )
0 commit comments