summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Update to ruby/spec@c6e9285Benoit Daloze2021-06-024-22/+19
|
* Update to ruby/spec@a0b7d0dBenoit Daloze2021-06-0266-162/+938
|
* Update to ruby/mspec@0091e8aBenoit Daloze2021-06-023-3/+77
|
* Skip a `File.atime` test randomly failing on Travis ppc64le.Jun Aruga2021-06-021-0/+5
| | | | See <https://bugs.ruby-lang.org/issues/17926>.
* Fix Enumerator::ArithmeticSequence handling of float rangesJeremy Evans2021-05-291-17/+21
| | | | | | | | | | Depending on the float range, there could be an off-by-one error, where the last result that should be in the range was missed. Fix this by checking if the computed value for the expected value outside the range is still inside the range, and if so, increment the step size. Fixes [Bug #16612]
* Guard ruby/spec with spec/mspec/tool/wrap_with_guard.rbHiroshi SHIBATA2021-05-27164-3901/+4393
|
* Use a shared spec for YAML.load and YAML.unsafe_loadBenoit Daloze2021-05-173-266/+140
|
* Prefer respond_to? to defined? in MSpecBenoit Daloze2021-05-171-1/+1
|
* spec/ruby/library/yaml: Test YAML.unsafe_load instead of YAML.load in 3.1Yusuke Endoh2021-05-173-112/+257
|
* Revert "Use YAML.unsafe_load instead of YAML.load."Yusuke Endoh2021-05-172-8/+8
| | | | This reverts commit a0e97b0e2e4314a0815d09beb825e38f234778da.
* Use YAML.unsafe_load instead of YAML.load.Hiroshi SHIBATA2021-05-172-8/+8
| | | | | This is a temporary workaround. We should rewrite the examples with permitted_classes.
* Fix handling of control/meta escapes in literal regexpsJeremy Evans2021-05-121-1/+1
| | | | | | | | | | | | | | | | | | | Ruby uses a recursive algorithm for handling control/meta escapes in strings (read_escape). However, the equivalent code for regexps (tokadd_escape) in did not use a recursive algorithm. Due to this, Handling of control/meta escapes in regexp did not have the same behavior as in strings, leading to behavior such as the following returning nil: ```ruby /\c\xFF/ =~ "\c\xFF" ``` Switch the code for handling \c, \C and \M in literal regexps to use the same code as for strings (read_escape), to keep behavior consistent between the two. Fixes [Bug #14367]
* Run nmake check on Actions (#4487)Takashi Kokubun2021-05-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Run nmake check on Actions * Skip tests not working in mswin GitHub Actions * Override TEMP * Revert "Skip tests not working in mswin GitHub Actions" This reverts commit 544d2575fcdf23ae63cd25aa03fce10c28b259f2. * Revert "Revert "Skip tests not working in mswin GitHub Actions"" This reverts commit e1f8ad7862c9c4be52dc6e1031a004621eb07e6e. * Fix timeouts * Skip some more broken tests * Update windows.yml * Add a guard for rbasic_spec * Revert "Update windows.yml" This reverts commit bc9694b6b3b9594d406378d15ca11723fb052bc8. * Skip the ensure clause * Simplify the ensure
* Sync bundler & rubygemsDavid Rodríguez2021-05-1129-149/+823
|
* net-http no longer requires stringioNobuyoshi Nakada2021-05-064-0/+5
|
* spec/ruby/library/net/http/http/fixtures/http_server.rb host naming for WindowsMSP-Greg2021-05-041-1/+1
|
* spec/ruby/core/file/shared/read.rb: The behavior of FreeBSD was changedYusuke Endoh2021-04-261-2/+2
| | | | http://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20210426T003001Z.fail.html.gz#rubyspec
* Try to fix other failures of writing XDG_CONFIG_HOMEKazuhiro NISHIYAMA2021-04-192-11/+11
| | | | | | | | | https://github.com/ruby/actions/actions/runs/756591173 https://github.com/ruby/actions/actions/runs/759073690 https://github.com/ruby/actions/actions/runs/761341026 ``` Errno::EACCES: Permission denied @ dir_s_mkdir - /home/runner/.config/irb ```
* Fix writing XDG_CONFIG_HOME in test-bundlerKazuhiro NISHIYAMA2021-04-171-0/+11
| | | | | | | https://github.com/ruby/actions/actions/runs/756591173 ``` Errno::EACCES: Permission denied @ dir_s_mkdir - /home/runner/.config/irb ```
* spec/ruby/core/hash/transform_keys_spec.rb: Fix the failure of ruby_3_0Yusuke Endoh2021-04-161-2/+2
| | | | | https://github.com/ruby/spec/pull/833 https://github.com/ruby/spec/commit/8290e5ad8952b14ee9a5069651d9864c66681112
* Merge the master branch of BundlerHiroshi SHIBATA2021-04-1535-423/+1424
|
* spec/ruby/library/matrix/: Change the version guard to 3.1.0Yusuke Endoh2021-04-151-1/+1
| | | | | [Bug #17521] won't be backported until 3.1.0. https://github.com/ruby/spec/pull/832
* spec/ruby/library/matrix/: Change the version guard to 3.0.2Yusuke Endoh2021-04-061-1/+1
| | | | [Bug #17521] is not backported to 3.0.1.
* Keep non evaluated keys in `Hash#transform_keys!` [Bug #17735]Kenichi Kamiya2021-03-281-1/+11
|
* Update to ruby/spec@fd6edddBenoit Daloze2021-03-2726-84/+501
|
* Update to ruby/mspec@d1adf59Benoit Daloze2021-03-27115-3117/+3213
|
* Fix Enumerable#tally with some arguments pattern [Feature #17744]Kenichi Kamiya2021-03-271-0/+19
| | | | | | | | | | | | | | * Add test cases for Enumerable#tally with hash argument * Add ruby/spec for Enumerable#tally with hash argument * Fix Enumerable#tally does not update given frozen hash * Add test cases for Enumerable#tally with hash convertible arguments * Fix SEGV when Enumerable#tally takes non Hash convertible * FIx cosmetic damage enum.c
* Enumerable#tally with the resulting hash [Feature #17744]Nobuyoshi Nakada2021-03-261-0/+28
|
* Fix test-bundler failures when XDG_CONFIG_HOME is not writableKazuhiro NISHIYAMA2021-03-242-0/+5
| | | | | | | https://github.com/ruby/actions/runs/2175399707?check_suite_focus=true ``` Errno::EACCES: Permission denied @ dir_s_mkdir - /home/runner/.config/irb ```
* File.dirname optional levelNobuyoshi Nakada2021-03-151-0/+16
| | | | | * file.c (rb_file_dirname_n): chomp N level of base names. [Feature #12194]
* Sync latest development version of bundler & rubygemsDavid Rodríguez2021-03-0849-438/+1456
|
* Skip spec which does not work on mingwBenoit Daloze2021-02-281-1/+1
| | | | | | | * https://github.com/ruby/ruby/runs/1994688198 ruby 3.1.0dev (2021-02-27T16:42:17Z master 8305a48413) [x64-mingw32] 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 Example took longer than the configured timeout of 60.0s
* Update to ruby/spec@37e52e5Benoit Daloze2021-02-2748-65/+812
|
* Make String#{strip,lstrip}{,!} strip leading NUL bytesJeremy Evans2021-02-202-18/+22
| | | | | | | | | | | The documentation already specifies that they strip whitespace and defines whitespace to include null. This wraps the new behavior in the appropriate guards in the specs, but does not specify behavior for previous versions, because this is a bug that could be backported. Fixes [Bug #17467]
* Fix a spec failureKazuhiro NISHIYAMA2021-02-161-2/+10
| | | | | | | | | | | | http://ci.rvm.jp/logfiles/brlog.trunk-test.20210216-182358 ``` 1) $LOAD_PATH.resolve_feature_path raises LoadError if feature cannot be found FAILED Expected LoadError but no exception was raised (nil was returned) /tmp/ruby/v3/src/trunk-test/spec/ruby/language/predefined_spec.rb:1275:in `block (3 levels) in <top (required)>' /tmp/ruby/v3/src/trunk-test/spec/ruby/language/predefined_spec.rb:1259:in `block in <top (required)>' /tmp/ruby/v3/src/trunk-test/spec/ruby/language/predefined_spec.rb:1258:in `<top (required)>' ```
* Thread::Queue.new should accept an Enumerable [Feature #17327]Nobuyoshi Nakada2021-02-121-10/+4
| | | | Enumerable implements #to_a but not #to_array.
* The Queue constructor should take an initial set of objectsChris Seaton2021-02-111-0/+44
| | | | Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Fix failures with EditLineKazuhiro NISHIYAMA2021-02-032-2/+2
| | | | | | | | | | | | | | On macOS with EditLine: ``` $ ruby -r readline -e 'Readline.readline("> "); p Readline::VERSION' < /dev/null "EditLine wrapper" ``` On Linux with GNU readline: ``` $ ruby -r readline -e 'Readline.readline("> "); p Readline::VERSION' < /dev/null > "8.0" ```
* Fix failure when build in srcdir/buildKazuhiro NISHIYAMA2021-01-291-0/+1
| | | | | If `build` directory exists, `rake build` is `Rake::FileTask`. So skip if exists.
* Fixed Kernel#rand specNobuyoshi Nakada2021-01-291-10/+10
| | | | Float should not be compared by identity.
* Update to ruby/spec@8cafaa5Benoit Daloze2021-01-2835-10/+832
|
* Add fallback when PWD is not setKazuhiro NISHIYAMA2021-01-281-2/+6
|
* Use PWD instead of source_rootKazuhiro NISHIYAMA2021-01-281-1/+2
| | | | | Because `.ext/common` is not relative from top source directory. Fix failures with out-of-place build directory.
* Remove require_path from $LOADED_FEATURESKazuhiro NISHIYAMA2021-01-281-0/+1
| | | | because some features are already loaded.
* Delete path including `/../` tooKazuhiro NISHIYAMA2021-01-281-1/+4
|
* Taint flags has been deprecated in 3.1Nobuyoshi Nakada2021-01-274-2/+17
|
* Replace "iff" with "if and only if"Gannon McGibbon2021-01-196-6/+6
| | | | | | | iff means if and only if, but readers without that knowledge might assume this to be a spelling mistake. To me, this seems like exclusionary language that is unnecessary. Simply using "if and only if" instead should suffice.
* Upcoming Struct#new behaviorNobuyoshi Nakada2021-01-181-7/+22
|
* Rename RubyVM::MJIT to RubyVM::JITTakashi Kokubun2021-01-132-2/+2
| | | | | | | | because the name "MJIT" is an internal code name, it's inconsistent with --jit while they are related to each other, and I want to discourage future JIT implementation-specific (e.g. MJIT-specific) APIs by this rename. [Feature #17490]
* Remove "." and ".." from Dir.glob with FNM_DOTMATCH [Bug #17280]Nobuyoshi Nakada2021-01-123-19/+70
| | | | Co-authored-by: Jeremy Evans <code@jeremyevans.net>