Skip to content

Commit 76a8820

Browse files
committed
[GR-14806] Update specs.
PullRequest: truffleruby/1167
2 parents a0f15a1 + f65b8a6 commit 76a8820

File tree

354 files changed

+3863
-2642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+3863
-2642
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Bug fixes:
3131
* Fixed missing polyglot type declaration for `RSTRING_PTR` to help with native/managed interop.
3232
* Fixed `Module#to_s` and `Module#inspect` to not return an extra `#<Class:` for singleton classes.
3333
* Arrays backed by native storage now allocate the correct amount of memory (#1828).
34+
* Fixed issue in `ConditionVariable#wait` that could lose a `ConditionVariable#signal`.
3435

3536
Compatibility:
3637

spec/mspec/lib/mspec/commands/mkspec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def initialize
1919
@map = NameMap.new true
2020
end
2121

22-
def options(argv=ARGV)
22+
def options(argv = ARGV)
2323
options = MSpecOptions.new "mkspec [options]", 32
2424

2525
options.on("-c", "--constant", "CONSTANT",

spec/mspec/lib/mspec/commands/mspec-ci.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class MSpecCI < MSpecScript
11-
def options(argv=ARGV)
11+
def options(argv = ARGV)
1212
options = MSpecOptions.new "mspec ci [options] (FILE|DIRECTORY|GLOB)+", 30, config
1313

1414
options.doc " Ask yourself:"

spec/mspec/lib/mspec/commands/mspec-run.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def initialize
1414
config[:files] = []
1515
end
1616

17-
def options(argv=ARGV)
17+
def options(argv = ARGV)
1818
options = MSpecOptions.new "mspec run [options] (FILE|DIRECTORY|GLOB)+", 30, config
1919

2020
options.doc " Ask yourself:"

spec/mspec/lib/mspec/commands/mspec-tag.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize
1515
config[:ltags] = []
1616
end
1717

18-
def options(argv=ARGV)
18+
def options(argv = ARGV)
1919
options = MSpecOptions.new "mspec tag [options] (FILE|DIRECTORY|GLOB)+", 30, config
2020

2121
options.doc " Ask yourself:"

spec/mspec/lib/mspec/commands/mspec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def initialize
2121
config[:launch] = []
2222
end
2323

24-
def options(argv=ARGV)
24+
def options(argv = ARGV)
2525
config[:command] = argv.shift if ["ci", "run", "tag"].include?(argv[0])
2626

2727
options = MSpecOptions.new "mspec [COMMAND] [options] (FILE|DIRECTORY|GLOB)+", 30, config
@@ -90,8 +90,7 @@ def register; end
9090

9191
def multi_exec(argv)
9292
require 'mspec/runner/formatters/multi'
93-
formatter = MultiFormatter.new
94-
warn "formatter options is ignored due to multi option" if config[:formatter]
93+
formatter = config_formatter.extend(MultiFormatter)
9594

9695
require 'mspec/runner/parallel'
9796
processes = cores(@files.size)

spec/mspec/lib/mspec/helpers/datetime.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
# Possible keys are:
88
# :year, :month, :day, :hour, :minute, :second, :offset and :sg.
9-
def new_datetime(opts={})
9+
def new_datetime(opts = {})
1010
require 'date'
1111

1212
value = {

spec/mspec/lib/mspec/helpers/flunk.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
def flunk(msg="This example is a failure")
1+
def flunk(msg = "This example is a failure")
22
SpecExpectation.fail_with "Failed:", msg
33
end

spec/mspec/lib/mspec/helpers/fs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def rm_r(*paths)
5555

5656
# Creates a file +name+. Creates the directory for +name+
5757
# if it does not exist.
58-
def touch(name, mode="w")
58+
def touch(name, mode = "w")
5959
mkdir_p File.dirname(name)
6060

6161
File.open(name, mode) do |f|

spec/mspec/lib/mspec/helpers/io.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def inspect
6464
# Creates a "bare" file descriptor (i.e. one that is not associated
6565
# with any Ruby object). The file descriptor can safely be passed
6666
# to IO.new without creating a Ruby object alias to the fd.
67-
def new_fd(name, mode="w:utf-8")
67+
def new_fd(name, mode = "w:utf-8")
6868
if mode.kind_of? Hash
6969
if mode.key? :mode
7070
mode = mode[:mode]

0 commit comments

Comments
 (0)