aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby
Commit message (Collapse)AuthorAgeFilesLines
* Warn non-nil `$\` [Feature #14240]Nobuyoshi Nakada2020-02-236-20/+29
|
* Expand Symbol#to_proc specs to be clearerBenoit Daloze2020-02-221-10/+32
|
* Proc from Symbol needs a receiverNobuyoshi Nakada2020-02-221-4/+6
| | | | | | | So its arity should be -2 instead of -1. [Bug #16640] https://bugs.ruby-lang.org/issues/16640#change-84337
* `Proc` made by `Symbol#to_proc` should be a lambda [Bug #16260]Nobuyoshi Nakada2020-02-191-1/+1
|
* spec/ruby/library/socket/constants/constants_spec.rb: skip on AndroidYusuke Endoh2020-02-131-1/+1
| | | | IP_MAX_MEMBERSHIPS seems not to be defined on Android
* spec/ruby/library/socket/addrinfo/getnameinfo_spec.rb: skip on AndroidYusuke Endoh2020-02-131-10/+12
| | | | | | | | | | | FreeBSD's GETNAMEINFO(3) says: > If a link-layer address or UNIX-domain address is passed to > getnameinfo(), its ASCII representation will be stored in host. The > string pointed to by serv will be set to the empty string if non-NULL; > flags will always be ignored. Android seems to behave like FreeBSD.
* spec/ruby/library/etc/: skip the specs related to group on AndroidYusuke Endoh2020-02-132-2/+2
| | | | User/group system on Android seems different from normal Linux.
* spec/ruby/library/socket/addrinfo: skip the specs that uses SOCK_SEQPACKET ↵Yusuke Endoh2020-02-131-23/+27
| | | | | | on Android SOCK_SEQPACKET seems not to be supported on Android
* spec/ruby/library/syslog: skip the specs that use LOG_PERROR on AndroidYusuke Endoh2020-02-132-2/+2
| | | | | LOG_PERROR is defined on Android, but not implemented yet. See also f3c4e620ac612eab6370b1fb82feaa4e651542bb.
* spec/ruby: skip the specs that use /etc/passwd on AndroidYusuke Endoh2020-02-134-4/+7
| | | | There is no /etc/passwd on Android
* spec/ruby/library/etc/confstr_spec.rb: skip on AndroidYusuke Endoh2020-02-131-1/+1
| | | | There seems to be no _CS_PATH on Android.
* spec/ruby/core/process/spawn_spec.rb: Use / instead of /tmpYusuke Endoh2020-02-131-1/+1
| | | | because there is no /tmp on Android.
* spec/ruby/core/process/clock_getres_spec.rb: skip on AndroidYusuke Endoh2020-02-131-1/+1
| | | | | in the same way as FreeBSD and OpenBSD. I guess that the spec makes too strong assumption.
* spec/ruby/core/encoding/locale_charmap_spec.rb: locale_charmap is UTF-8 on ↵Yusuke Endoh2020-02-131-5/+16
| | | | | | | Android nl_langinfo(CODESET) always returns UTF-8 on Android, regardless to LC_ALL=C.
* spec/ruby/core/dir/home_spec.rb: exclude AndroidYusuke Endoh2020-02-131-1/+1
| | | | | I couldn't find a robust way to get the home path except ENV["HOME"] on Android Termux.
* Make yield in singleton class definitions in methods a SyntaxErrorJeremy Evans2020-02-111-1/+9
| | | | | | | | This behavior was deprecated in 2.7 and scheduled to be removed in 3.0. Calling yield in a class definition outside a method is now a SyntaxError instead of a LocalJumpError, as well.
* spec/ruby/core/file/utime_spec.rb: far future timestamp may be trancatedYusuke Endoh2020-02-091-3/+5
| | | | | | | | | | | | | | | | | | Under some Ext4 filesystem settings, a timestamp is limited up to 0x37fffffff (2446-05-10). https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Inode_Timestamps > Therefore, timestamps should not overflow until May 2446. Actually the spec fails under one of our CI environments, like: ``` 1) File.utime allows Time instances in the far future to set mtime and atime FAILED Expected 2446 == 559444 to be truthy but was false ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-master/log/20200208T180002Z.fail.html.gz
* [DOC] Added 2.7.x to the latest stable versions [ci skip]Nobuyoshi Nakada2020-02-081-1/+1
|
* [ruby/spec] Don't care about return valuesNobuyoshi Nakada2020-02-063-57/+4
| | | | | | RDoc says nothing about them. Added an example that ConditionVariable#wait can be woken up by ConditionVariable#signal, instead.
* [ruby/spec] Just test that sleep completesNobuyoshi Nakada2020-02-061-1/+1
|
* [ruby/spec] Check by Thread#stop?Nobuyoshi Nakada2020-02-065-16/+24
| | | | | Check if threads are stopped by Thread#stop? instead of the status name.
* Update to ruby/spec@f8a2d54Benoit Daloze2020-01-2876-224/+2451
|
* Fix some spec breakage on 2.7 related to keyword argumentsJeremy Evans2020-01-281-11/+21
| | | | | | | These specs were probably added in the commit to fully separate keyword arguments after the release of 2.7.0, but apparently not tested on 2.7 before hand. The enclosing ruby_version guard for these specs limits them to 2.7.
* Fix version guard in __dir__ specBenoit Daloze2020-01-281-2/+2
|
* Removed useless "spec"sNobuyoshi Nakada2020-01-272-29/+0
| | | | | It is not specific to particular methods that keyword option arguments are coerced to `Hash`es using `to_hash` method.
* Moved Array#sample to rbincNobuyoshi Nakada2020-01-261-13/+16
|
* Moved Array#shuffle and Array#shuffle! to rbincNobuyoshi Nakada2020-01-261-4/+7
|
* spec/ruby/core/process/times_spec.rb: add an output code for debuggingYusuke Endoh2020-01-251-1/+8
|
* Guarded the examples for deprecated "taint"Nobuyoshi Nakada2020-01-233-23/+33
|
* Update version guardKazuhiro NISHIYAMA2020-01-152-3/+3
| | | | fix up 98ef38ada43338c073f50a0093196f0356284625
* Freeze Regexp literalsJean Boussier2020-01-156-9/+23
| | | | | | | [Feature #8948] [Feature #16377] Since Regexp literals always reference the same instance, allowing to mutate them can lead to state leak.
* Also ignored cve_2014_8080_specHiroshi SHIBATA2020-01-121-24/+27
|
* Ignore rexml examples on ruby/specHiroshi SHIBATA2020-01-12104-1550/+1862
|
* Include the standard `id` command outputNobuyoshi Nakada2020-01-091-0/+4
| | | | | On macOS, GNU coreutils `id` is limited to NGROUPS_MAX groups, because of the backward compatibility of getgroups(2).
* Make eval(code, binding) use (eval) as __FILE__ and 1 as __LINE__Jeremy Evans2020-01-033-33/+96
| | | | | | | | | This removes the warning that was added in 3802fb92ff8c83eed3e867db20f72c53932f542d, and switches the behavior so that the eval does not use the binding's __FILE__ and __LINE__ implicitly. Fixes [Bug #4352]
* Update specs for keyword argument separationJeremy Evans2020-01-025-213/+633
|
* MinGW on Actions (#2791)MSP-Greg2019-12-301-13/+15
| | | | | | | | | | | | | | | | | | | * MinGW - skip spec in spec/ruby/optional/capi/thread_spec.rb C-API Thread function rb_thread_call_without_gvl -- runs a C function with the global lock unlocked and unlocks IO with the generic RUBY_UBF_IO stops/freezes spec tests See https://bugs.ruby-lang.org/issues/16265 * MinGW - skip test test/resolv/test_dns.rb Test times out in CI (both AppVeyor & Actions), cannot repo locally * MinGW - skip test test/ruby/test_thread_queue.rb * Add Actions mingw.yml
* Fix Proc#<< specAlan Wu2019-12-301-11/+25
| | | | [Bug #16406]
* Decide lambdaness of (f << g) using g (#2729)Alan Wu2019-12-301-1/+2
| | | | | | * Deciding lambdaness of (f << g) using g * Use version guards for spec changes
* Update to ruby/spec@7241f39Benoit Daloze2019-12-275-16/+13
|
* Update to ruby/spec@d419e74Benoit Daloze2019-12-2744-530/+788
|
* Get rid of false positive misspellingsNobuyoshi Nakada2019-12-241-1/+1
| | | | [Bug #16437]
* Revert "Should return "." for File.extname("file.") also on Windows"NAKAMURA Usaku2019-12-231-2/+2
| | | | | | | | We want to introduce consistency and better compatibility with unixen, but the Windows APIs doues not have consistency fundamentally and we can not found any logical way... This reverts commit 61aff0cd189e67fa6f2565639ad0128fa33b88fc.
* Move version guard outside to make it clear the method was added in Ruby 2.5Benoit Daloze2019-12-221-2/+2
|
* Should return "." for File.extname("file.") also on WindowsNAKAMURA Usaku2019-12-221-2/+2
| | | | | But not changes another cases, such as "file.rb." [Bug #15267]
* Add spec for capturing Kernel#lambda with Kernel#methodAlan Wu2019-12-211-0/+7
|
* Add specs for calling into Kernel#lambda with superAlan Wu2019-12-212-1/+38
|
* Makes the receiver to FrozenError.new a keyword parameterNobuyoshi Nakada2019-12-201-1/+1
| | | | [Feature #16419]
* Fixed misspellingsNobuyoshi Nakada2019-12-2012-17/+17
| | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
* close datasocket on stor of server sideNARUSE, Yui2019-12-171-1/+1
|