Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Regexp#kcode is removed on Ruby 1.9.

  • Loading branch information...
commit 356744efc031d9dacff90e53d9d8c951aee98694 1 parent 0cab8fc
@nurse nurse authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 core/regexp/union_spec.rb
View
6 core/regexp/union_spec.rb
@@ -15,8 +15,10 @@
Regexp.union("n", ".").should == /n|\./
end
- it "propagates the kcode setting to the output Regexp" do
- Regexp.union(/./u, "meow").kcode.should == "utf8"
+ ruby_version_is '' ... '1.9' do
+ it "propagates the kcode setting to the output Regexp" do
+ Regexp.union(/./u, "meow").kcode.should == "utf8"
+ end
end
it "raises ArgumentError if the kcodes conflict" do
Please sign in to comment.
Something went wrong with that request. Please try again.