diff options
Diffstat (limited to 'spec/ruby/core/regexp/casefold_spec.rb')
-rw-r--r-- | spec/ruby/core/regexp/casefold_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/ruby/core/regexp/casefold_spec.rb b/spec/ruby/core/regexp/casefold_spec.rb new file mode 100644 index 0000000000..55efcaa765 --- /dev/null +++ b/spec/ruby/core/regexp/casefold_spec.rb @@ -0,0 +1,8 @@ +require File.expand_path('../../../spec_helper', __FILE__) + +describe "Regexp#casefold?" do + it "returns the value of the case-insensitive flag" do + /abc/i.casefold?.should == true + /xyz/.casefold?.should == false + end +end |