aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/regexp/casefold_spec.rb
blob: d84a2d63c9027bc3bb559aa5f3cf9f2a9fc6c79b (plain)
1
2
3
4
5
6
7
8
require_relative '../../spec_helper'

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