Created
December 10, 2010 00:28
-
-
Save kchien/735568 to your computer and use it in GitHub Desktop.
rspec-expectations : include.feature change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2d348a3d4a69c167572b42ac65961b1c66d086f7 Mon Sep 17 00:00:00 2001 | |
From: Kenrick Chien <[email protected]> | |
Date: Thu, 9 Dec 2010 19:22:26 -0500 | |
Subject: [PATCH] Changed expectation to use regex. | |
--- | |
features/matchers/include.feature | 4 ++-- | |
1 files changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/features/matchers/include.feature b/features/matchers/include.feature | |
index 6f82994..90dabe9 100644 | |
--- a/features/matchers/include.feature | |
+++ b/features/matchers/include.feature | |
@@ -131,6 +131,6 @@ Feature: include matcher | |
| expected {:a=>7, :b=>5} to include {:a=>5, :b=>7} | | |
| expected {:a=>7, :b=>5} to include :a and :d | | |
| expected {:a=>7, :b=>5} not to include :a and :d | | |
- | expected {:a=>7, :b=>5} to include {:a=>7, :d=>3} | | |
- | expected {:a=>7, :b=>5} not to include {:a=>7, :d=>3} | | |
+ And the output should match /expected \{:a=>7, :b=>5\} to include \{(?::a=>7, :d=>3)|(?::d=>3, :a=>7)\}/ | |
+ And the output should match /expected \{:a=>7, :b=>5\} not to include \{(?::a=>7, :d=>3)|(?::d=>3, :a=>7)\}/ | |
-- | |
1.6.2.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment