From 0adaa2a 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
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