diff options
Diffstat (limited to 'spec/ruby/core/regexp/shared/new.rb')
-rw-r--r-- | spec/ruby/core/regexp/shared/new.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/regexp/shared/new.rb b/spec/ruby/core/regexp/shared/new.rb index bb5df7bc2e..9cbf89cd8b 100644 --- a/spec/ruby/core/regexp/shared/new.rb +++ b/spec/ruby/core/regexp/shared/new.rb @@ -58,7 +58,7 @@ describe :regexp_new_string, shared: true do end end - it "sets options from second argument if it is one of the Fixnum option constants" do + it "sets options from second argument if it is one of the Integer option constants" do r = Regexp.send(@method, 'Hi', Regexp::IGNORECASE) (r.options & Regexp::IGNORECASE).should_not == 0 (r.options & Regexp::MULTILINE).should == 0 @@ -81,14 +81,14 @@ describe :regexp_new_string, shared: true do end end - it "accepts a Fixnum of two or more options ORed together as the second argument" do + it "accepts an Integer of two or more options ORed together as the second argument" do r = Regexp.send(@method, 'Hi', Regexp::IGNORECASE | Regexp::EXTENDED) (r.options & Regexp::IGNORECASE).should_not == 0 (r.options & Regexp::MULTILINE).should == 0 (r.options & Regexp::EXTENDED).should_not == 0 end - it "treats any non-Fixnum, non-nil, non-false second argument as IGNORECASE" do + it "treats any non-Integer, non-nil, non-false second argument as IGNORECASE" do r = Regexp.send(@method, 'Hi', Object.new) (r.options & Regexp::IGNORECASE).should_not == 0 (r.options & Regexp::MULTILINE).should == 0 |