summaryrefslogtreecommitdiff
path: root/spec/ruby
AgeCommit message (Collapse)Author
2019-09-09Make test-all and test-spec runnable on AndroidYusuke Endoh
Calling some syscall functions such as Dir.chroot causes SIGSYS instead of EPERM on Android. This change skips all tests that stops the test-suite run.
2019-09-08Improve Proc#to_s specsBenoit Daloze
2019-09-08Removed useless braces to suppress a warningNobuyoshi Nakada
2019-09-07armv7l and armv7l are the same platform, generalize to armv7Benoit Daloze
[Bug #16007]
2019-09-05Add `File.absolute_path?` (#2198)David Rodríguez
In order to check whether a path is absolute or not in a portable way. [Feature #15868]
2019-09-03Remove bad expectation in specJeremy Evans
This spec should not be checking where methods are defined, only that the method works as expected (returns a Lazy instance). Notes: Merged: https://github.com/ruby/ruby/pull/2421
2019-09-02Prohibit nul-separated glob pattern [Feature #14643] (#2419)Nobuyoshi Nakada
Notes: Merged-By: nobu <nobu@ruby-lang.org>
2019-08-30Warn for keyword to last hash parameter when method has no optional/rest ↵Jeremy Evans
parameters Previously, there was no warning in this case, even though we will be changing the behavior in Ruby 3. Fixes [Bug #14130]
2019-08-30Update specs to handle non-Symbols for keyword splats in 2.7Jeremy Evans
Also handle some warnings for behavior that will change in 3.0. Notes: Merged: https://github.com/ruby/ruby/pull/2395
2019-08-30spec/ruby/core/unboundmethod/bind_call_spec.rb: Add ruby_version_is guardYusuke Endoh
2019-08-30spec/ruby/core/unboundmethod/bind_call_spec.rb: AddedYusuke Endoh
For UnboundMethod#bind_call [Feature #15955] introduced in 002e592e0d67bb0271d16314a32380ad947c9ae9.
2019-08-29Fixed a comment [ci skip]Nobuyoshi Nakada
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.
2019-08-29Revert "Remove warnings of flip-flop deprecation from tests and specs"Nobuyoshi Nakada
This reverts commit bf7a32d22079cc44eb19794e41d82b886d5d17b3. flip-flop is no longer deprecated. [Feature #5400]
2019-08-28Follows callback declaration updatesNobuyoshi Nakada
2019-08-27Fix rb_thread_create argument typeTakashi Kokubun
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
2019-08-17Move fixture path to last pathHiroshi SHIBATA
2019-08-14change Proc#to_s format ('@...' -> ' ...') (#2362)Koichi Sasada
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]
2019-08-09Fix typo: duplicated the [skip-ci]ohbarye
2019-08-03Suppress warnings against locations in evalNobuyoshi Nakada
2019-07-31Split in two spec examplesBenoit Daloze
2019-07-31Attempt to fix Hash#rehash specBenoit Daloze
2019-07-31delete a check on bad assumption.Koichi Sasada
If object was modified, but there is a case that hash values (#hash) are same between before modified and after modified objects.
2019-07-29Warn if using return at top-level with an argumentJeremy Evans
Fixes [Bug #14062]
2019-07-27Update to ruby/spec@0526d8fBenoit Daloze
2019-07-27Update to ruby/spec@875a09eBenoit Daloze
2019-07-27Initialize DST flagNobuyoshi Nakada
* time.c (zone_timelocal): initialize DST flag by asking the timezone object. [Bug #15988]
2019-07-16Removed twisted testsNobuyoshi Nakada
Why does only Process.daemon have these tests?
2019-07-15Fixed ruby/spec for Logger::LogDevice changes.Hiroshi SHIBATA
2019-07-11File::Stat uses Time#inspectNobuyoshi Nakada
2019-07-11Revert "parse.y: Deprecate flip-flops"Nobuyoshi Nakada
This reverts commit bae638ad5b782c44c80efe33834cb9039279af46. [Feature #5400]
2019-07-04Revert self-referencing finalizer warning [Feature #15974]Nobuyoshi Nakada
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
2019-07-03Version guard for [Feature #15974]Nobuyoshi Nakada
2019-07-03Warn in verbose mode on defining a finalizer that captures the objectChris Seaton
[Feature #15974] Closes: https://github.com/ruby/ruby/pull/2264
2019-07-01Prefer master rather than trunk in README [ci skip]Takashi Kokubun
2019-06-29Fix predicate to assert if object is sameNobuyoshi Nakada
2019-06-29Fix predicate to assert if object is sameNobuyoshi Nakada
2019-06-27Update to ruby/spec@94d98ffBenoit Daloze
2019-06-27Update to ruby/spec@8d74d49Benoit Daloze
2019-06-26Added version guard for backtrace printing feature of psych to ruby/spec.Hiroshi SHIBATA
2019-06-25Fixed broken ruby/spec related a53ab897c35586a836710a8afeb1e8c1abd9b087Hiroshi SHIBATA
2019-06-23Max length of UNIX socket path is 104 bytes on macOSNobuyoshi Nakada
2019-06-23Do not lengthen UNIX socket pathNobuyoshi Nakada
* spec/ruby/library/socket/unixsocket/recvfrom_spec.rb: do not lengthen UNIX socket path, which is very stricted.
2019-06-21Alias ENV.merge! as ENV.updateKenichi Kamiya
[Feature #15947] Closes: https://github.com/ruby/ruby/pull/2246
2019-06-21Use different names for autoload constants in specs for clarityBenoit Daloze
2019-06-21Add extra spec from https://github.com/ruby/ruby/pull/2173Jean Boussier
2019-06-21Add an optional `inherit` argument to Module#autoload?Jean Boussier
[Feature #15777] Closes: https://github.com/ruby/ruby/pull/2173
2019-06-19Remove spec testing undefined behaviorJeremy Evans
Fixes [Bug #15432]
2019-06-19Implement Complex#<=>Jeremy Evans
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]
2019-06-10Resolv specs should pass on Windows nowBenoit Daloze
2019-06-10Fix Resolv specs to not depend on a system /etc/hosts fileBenoit Daloze
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/archlinux/ruby-master/log/20190609T153804Z.fail.html.gz * Thanks @naruse for the tip.