Skip to content

Commit

Permalink
Add a CLI test for restarting an application.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred committed Mar 11, 2011
1 parent 492a149 commit 85b3ba4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/passenger_pane/cli_test.nu
Expand Up @@ -68,6 +68,12 @@
(set arguments (NSString stringWithContentsOfFile:pathToCLIArguments encoding:NSUTF8StringEncoding error:nil))
(~ arguments should equal:"[\"delete\", \"test.local\"]")
))

(it "restarts an application" (do ()
(@cli restart:@application)
(set arguments (NSString stringWithContentsOfFile:pathToCLIArguments encoding:NSUTF8StringEncoding error:nil))
(~ arguments should equal:"[\"restart\", \"test.local\"]")
))
))

((Bacon sharedInstance) run)

0 comments on commit 85b3ba4

Please sign in to comment.