public

rspec-expectations : include.feature change

  • Download Gist
0001-Changed-expectation-to-use-regex.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
From 2d348a3d4a69c167572b42ac65961b1c66d086f7 Mon Sep 17 00:00:00 2001
From: Kenrick Chien <ken.chien@gmail.com>
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.