OSDN Git Service

update tests for 'wp site list'. see #661
authorscribu <mail@scribu.net>
Tue, 13 Aug 2013 13:51:44 +0000 (16:51 +0300)
committerscribu <mail@scribu.net>
Tue, 13 Aug 2013 13:51:44 +0000 (16:51 +0300)
features/site.feature

index aa53f8c..3e87285 100644 (file)
@@ -7,11 +7,11 @@ Feature: Manage sites in a multisite installation
     Then STDOUT should be a number
     And save STDOUT as {SITE_ID}
 
-    When I run `wp site list`
+    When I run `wp site list --fields=blog_id,url`
     Then STDOUT should be a table containing rows:
-      | blog_id | domain      | path    |
-      | 1       | example.com | /       |
-      | 2       | example.com | /first/ |
+      | blog_id | url                |
+      | 1       | example.com/       |
+      | 2       | example.com/first/ |
 
     When I run `wp site delete {SITE_ID} --yes`
     Then STDOUT should not be empty