aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby
Commit message (Collapse)AuthorAgeFilesLines
* Remove bad expectation in specJeremy Evans2019-09-031-1/+0
| | | | | This spec should not be checking where methods are defined, only that the method works as expected (returns a Lazy instance).
* Prohibit nul-separated glob pattern [Feature #14643] (#2419)Nobuyoshi Nakada2019-09-021-1/+7
|
* Warn for keyword to last hash parameter when method has no optional/rest ↵Jeremy Evans2019-08-301-4/+12
| | | | | | | | | parameters Previously, there was no warning in this case, even though we will be changing the behavior in Ruby 3. Fixes [Bug #14130]
* Update specs to handle non-Symbols for keyword splats in 2.7Jeremy Evans2019-08-305-150/+378
| | | | Also handle some warnings for behavior that will change in 3.0.
* spec/ruby/core/unboundmethod/bind_call_spec.rb: Add ruby_version_is guardYusuke Endoh2019-08-301-36/+38
|
* spec/ruby/core/unboundmethod/bind_call_spec.rb: AddedYusuke Endoh2019-08-301-0/+50
| | | | | For UnboundMethod#bind_call [Feature #15955] introduced in 002e592e0d67bb0271d16314a32380ad947c9ae9.
* Fixed a comment [ci skip]Nobuyoshi Nakada2019-08-291-1/+1
| | | | | | A range literal in conditional expression is turned into a flip-flop, as a Range object is never falsy and does not make a sense.
* Revert "Remove warnings of flip-flop deprecation from tests and specs"Nobuyoshi Nakada2019-08-293-15/+10
| | | | | | | | This reverts commit bf7a32d22079cc44eb19794e41d82b886d5d17b3. flip-flop is no longer deprecated. [Feature #5400]
* Follows callback declaration updatesNobuyoshi Nakada2019-08-284-11/+16
|
* Fix rb_thread_create argument typeTakashi Kokubun2019-08-271-1/+1
| | | | | | | | | | in response to the declaration change in e3fc30564e9466d6926f9d25a090dcf787bd5c33. Fixing the AppVeyor mswin CI failure: https://ci.appveyor.com/project/ruby/ruby/builds/26980881/job/2j6h1qwjnbc8cpop ref: https://github.com/ruby/ruby/pull/2404
* Move fixture path to last pathHiroshi SHIBATA2019-08-171-1/+1
|
* change Proc#to_s format ('@...' -> ' ...') (#2362)Koichi Sasada2019-08-141-4/+4
| | | | | | | | Now Proc#to_s returns "#<Proc:0x00000237a0f5f170@t.rb:1>". However, it is convenient to select a file name by (double-)clicking on some terminals by separating ' ' instead of '@' like "#<Proc:0x00000237a0f5f170 t.rb:1>" [Feature #16101]
* Fix typo: duplicated the [skip-ci]ohbarye2019-08-092-2/+2
|
* Suppress warnings against locations in evalNobuyoshi Nakada2019-08-032-11/+11
|
* Split in two spec examplesBenoit Daloze2019-07-311-1/+3
|
* Attempt to fix Hash#rehash specBenoit Daloze2019-07-311-9/+12
|
* delete a check on bad assumption.Koichi Sasada2019-07-311-1/+5
| | | | | | If object was modified, but there is a case that hash values (#hash) are same between before modified and after modified objects.
* Warn if using return at top-level with an argumentJeremy Evans2019-07-291-6/+19
| | | | Fixes [Bug #14062]
* Update to ruby/spec@0526d8fBenoit Daloze2019-07-271-2/+2
|
* Update to ruby/spec@875a09eBenoit Daloze2019-07-271247-5031/+5319
|
* Initialize DST flagNobuyoshi Nakada2019-07-271-1/+1
| | | | | * time.c (zone_timelocal): initialize DST flag by asking the timezone object. [Bug #15988]
* Removed twisted testsNobuyoshi Nakada2019-07-161-8/+0
| | | | Why does only Process.daemon have these tests?
* Fixed ruby/spec for Logger::LogDevice changes.Hiroshi SHIBATA2019-07-152-6/+24
|
* File::Stat uses Time#inspectNobuyoshi Nakada2019-07-111-2/+2
|
* Revert "parse.y: Deprecate flip-flops"Nobuyoshi Nakada2019-07-111-12/+0
| | | | | | This reverts commit bae638ad5b782c44c80efe33834cb9039279af46. [Feature #5400]
* Revert self-referencing finalizer warning [Feature #15974]Nobuyoshi Nakada2019-07-041-28/+0
| | | | | | | | | | | | | | | | | | | | It has caused CI failures. * d0cd0866d82a58933e5dccd073c753c0c2ad4eb5 Disable GC during rb_objspace_reachable_object_p * 89cef1c56b3a0f9c5e6ccc22a5044477a4fd16c1 Version guard for [Feature #15974] * 796eeb6339952d92ae1b353d450c7883e589852d. Fix up [Feature #15974] * 928260c2a613bbdd4402c300e0bf86ae7562e52a. Warn in verbose mode on defining a finalizer that captures the object
* Version guard for [Feature #15974]Nobuyoshi Nakada2019-07-031-24/+26
|
* Warn in verbose mode on defining a finalizer that captures the objectChris Seaton2019-07-031-0/+26
| | | | | | [Feature #15974] Closes: https://github.com/ruby/ruby/pull/2264
* Prefer master rather than trunk in README [ci skip]Takashi Kokubun2019-07-011-1/+1
|
* Fix predicate to assert if object is sameNobuyoshi Nakada2019-06-291-2/+2
|
* Fix predicate to assert if object is sameNobuyoshi Nakada2019-06-291-1/+1
|
* Update to ruby/spec@94d98ffBenoit Daloze2019-06-2710-18/+18
|
* Update to ruby/spec@8d74d49Benoit Daloze2019-06-27157-540/+578
|
* Added version guard for backtrace printing feature of psych to ruby/spec.Hiroshi SHIBATA2019-06-261-2/+10
|
* Fixed broken ruby/spec related a53ab897c35586a836710a8afeb1e8c1abd9b087Hiroshi SHIBATA2019-06-251-1/+1
|
* Max length of UNIX socket path is 104 bytes on macOSNobuyoshi Nakada2019-06-231-2/+2
|
* Do not lengthen UNIX socket pathNobuyoshi Nakada2019-06-231-1/+1
| | | | | * spec/ruby/library/socket/unixsocket/recvfrom_spec.rb: do not lengthen UNIX socket path, which is very stricted.
* Alias ENV.merge! as ENV.updateKenichi Kamiya2019-06-213-21/+31
| | | | | | [Feature #15947] Closes: https://github.com/ruby/ruby/pull/2246
* Use different names for autoload constants in specs for clarityBenoit Daloze2019-06-211-4/+4
|
* Add extra spec from https://github.com/ruby/ruby/pull/2173Jean Boussier2019-06-211-0/+5
|
* Add an optional `inherit` argument to Module#autoload?Jean Boussier2019-06-212-0/+18
| | | | | | [Feature #15777] Closes: https://github.com/ruby/ruby/pull/2173
* Remove spec testing undefined behaviorJeremy Evans2019-06-191-5/+0
| | | | Fixes [Bug #15432]
* Implement Complex#<=>Jeremy Evans2019-06-191-0/+27
| | | | | | | | | | | Implement Complex#<=> so that it is usable as an argument when calling <=> on objects of other classes (since #coerce will coerce such numbers to Complex). If the complex number has a zero imaginary part, and the other argument is a real number (or complex number with zero imaginary part), return -1, 0, or 1. Otherwise, return nil, indicating the objects are not comparable. Fixes [Bug #15857]
* Resolv specs should pass on Windows nowBenoit Daloze2019-06-104-26/+18
|
* Fix Resolv specs to not depend on a system /etc/hosts fileBenoit Daloze2019-06-105-15/+16
| | | | | * https://rubyci.org/logs/rubyci.s3.amazonaws.com/archlinux/ruby-master/log/20190609T153804Z.fail.html.gz * Thanks @naruse for the tip.
* Make specs pass on OpenBSDJeremy Evans2019-06-064-67/+118
| | | | | | | | | | | | | | | | | Skip Process clockres specs that don't work on either FreeBSD or Solaris/AIX in addition to OpenBSD. Run most current String#crypt specs on non-OpenBSD, and add a new set of crypt specs for OpenBSD, which support bcrypt but not DES in crypt(3). Use @server.connect_address instead of @server.getsockname in some socket tests, as OpenBSD does not treat connection to all zero IPv4 or IPv6 addresses as connection to localhost. When trying to connect using UDP on an unsupported address family, allow Errno::EPROTONOSUPPORT in addition to Errno::EAFNOSUPPORT, as OpenBSD raises the former.
* Split an assertion for f1f04caf60e4fc9dc3b12109e0be831f2d692810Nobuyoshi Nakada2019-06-051-1/+2
|
* `ruby -v` may no longer be ASCII-only on non-master branchesNobuyoshi Nakada2019-06-031-1/+1
|
* Update to ruby/spec@cfe908cBenoit Daloze2019-05-311-0/+35
|
* Let irb use an empty file as irbrcNobuyoshi Nakada2019-05-312-1/+3
| | | | to get rid of side-effect by existing .irbrc file.