jabley (owner)

Revisions

gist: 211293 Download_button fork
public
Public Clone URL: git://gist.github.com/211293.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 0adaa2a3b4968cd7d0bafd9df1c5f948ac7ea79f Mon Sep 17 00:00:00 2001
From: James Abley <james.abley@gmail.com>
Date: Thu, 15 Oct 2009 21:58:56 +0100
Subject: [PATCH] Spec for non-ascii dynamic regexp with once modifier
 
See http://jira.codehaus.org/browse/JRUBY-4037
---
 core/regexp/modifiers_spec.rb | 8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 core/regexp/modifiers_spec.rb
 
diff --git a/core/regexp/modifiers_spec.rb b/core/regexp/modifiers_spec.rb
new file mode 100644
index 0000000..aab50ac
--- /dev/null
+++ b/core/regexp/modifiers_spec.rb
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+require File.dirname(__FILE__) + '/../../spec_helper'
+
+describe "Regexp#modifiers" do
+ it "returns the same inspect value for dynamic regexp whether once is used or not" do
+ "ä"[/#{/\w/}/uo].inspect.should == "ä"[/#{/\w/}/u].inspect
+ end
+end
--
1.6.0.4