Permalink
Browse files

Test fix

  • Loading branch information...
1 parent 7f28a20 commit f838c781a2c6ade1bbb49ee0417183d0b6f699dd @christav christav committed Oct 30, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/cli/commands/cli.site-tests.js
@@ -299,12 +299,12 @@ suite('cli', function(){
cli.parse(cmd);
}, function (result) {
// Verify site stopped and restarted
- result.text.should.match('Site ' + siteName + ' has been stopped');
- result.text.should.match('Site ' + siteName + ' has been started');
+ result.text.should.match(new Regex('Site ' + siteName + ' has been stopped, restarting'));
+ result.text.should.match(new Regex('Site ' + siteName + ' has been restarted'));
// Delete test site
- cmd = util.format('node cli.js delete %s', siteName).split(' ');
+ cmd = util.format('node cli.js site delete %s', siteName).split(' ');
capture(function () {
cli.parse(cmd);
}, function (result) {
@@ -334,12 +334,12 @@ suite('cli', function(){
cli.parse(cmd);
}, function (result) {
// Verify site stopped and restarted
- result.text.should.match('Site ' + siteName + ' has been stopped');
- result.text.should.match('Site ' + siteName + ' has been started');
+ result.text.should.match(new Regex('Site ' + siteName + ' has been stopped, restarting'));
+ result.text.should.match(new Regex('Site ' + siteName + ' has been restarted'));
// Delete test site
- cmd = util.format('node cli.js delete %s', siteName).split(' ');
+ cmd = util.format('node cli.js site delete %s', siteName).split(' ');
capture(function () {
cli.parse(cmd);
}, function (result) {

0 comments on commit f838c78

Please sign in to comment.