[DRE-commits] [ruby-aruba] 57/74: Move utf-8 to file content steps

Hideki Yamane henrich at moszumanska.debian.org
Sat Nov 28 01:16:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository ruby-aruba.

commit 5b3cab8b782c1d1066792aac3e6179e0ff21f59b
Author: Max Meyer <dev at fedux.org>
Date:   Fri Nov 27 07:45:47 2015 +0100

    Move utf-8 to file content steps
---
 features/steps/filesystem/file_content.feature | 22 ++++++++++++++++++++++
 features/utf-8.feature                         | 14 --------------
 2 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/features/steps/filesystem/file_content.feature b/features/steps/filesystem/file_content.feature
index 883f7a3..1b4cfbc 100644
--- a/features/steps/filesystem/file_content.feature
+++ b/features/steps/filesystem/file_content.feature
@@ -62,3 +62,25 @@ Feature: Check file content
     """
     When I run `cucumber`
     Then the features should all pass
+
+  Scenario: Use non-ASCII UTF-8 characters
+    Given a file named "features/file_content.feature" with:
+    """
+    Feature: File content
+      Scenario: file content
+        Given a file named "test.txt" with:
+        \"\"\"
+        フィーチャ
+        \"\"\"
+        When I run `cat test.txt`
+        Then the output should contain:
+        \"\"\"
+        フィーチャ
+        \"\"\"
+        And the file named "test.txt" should contain:
+        \"\"\"
+        フィーチャ
+        \"\"\"
+    """
+    When I run `cucumber`
+    Then the features should all pass
diff --git a/features/utf-8.feature b/features/utf-8.feature
deleted file mode 100644
index 161647c..0000000
--- a/features/utf-8.feature
+++ /dev/null
@@ -1,14 +0,0 @@
-Feature: UTF-8
-
-  Scenario: Write then assert on the content of a file with UTF-8 characters in
-    Given a file named "turning-japanese" with:
-      """
-      フィーチャ
-
-      """
-    And I run `cat turning-japanese`
-    Then the output should contain exactly:
-      """
-      フィーチャ
-
-      """

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-aruba.git



More information about the Pkg-ruby-extras-commits mailing list