OSDN Git Service

behat: hide export warnings
authorscribu <mail@scribu.net>
Fri, 12 Jul 2013 00:50:59 +0000 (03:50 +0300)
committerscribu <mail@scribu.net>
Fri, 12 Jul 2013 00:53:58 +0000 (03:53 +0300)
features/export.feature
features/import.feature

index 1194696..31ea124 100644 (file)
@@ -3,5 +3,9 @@ Feature: Export content.
   Scenario: Basic export
     Given a WP install
 
-    When I run `wp export`
-    Then STDOUT should not be empty
+    When I try `wp export`
+    Then the return code should be 0
+    And STDOUT should contain:
+      """
+      All done with export
+      """
index e90d4c5..5a4c940 100644 (file)
@@ -10,11 +10,8 @@ Feature: Import content.
       7
       """
 
-    When I run `wp export`
-    Then STDOUT should contain:
-      """
-      All done with export
-      """
+    When I try `wp export`
+    Then the return code should be 0
     And save STDOUT 'Writing to file %s' as {EXPORT_FILE}
 
     When I run `wp site empty --yes`