Skip to content

Instantly share code, notes, and snippets.

@kchien
Created December 10, 2010 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kchien/735568 to your computer and use it in GitHub Desktop.
Save kchien/735568 to your computer and use it in GitHub Desktop.
rspec-expectations : include.feature change
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment