Skip to content

Commit 3b6f0ef

Browse files
committed
1 parent 2ebb18b commit 3b6f0ef

File tree

194 files changed

+591
-155
lines changed

Some content is hidden

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

194 files changed

+591
-155
lines changed

spec/ruby/core/array/all_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require_relative 'shared/iterable_and_tolerating_size_increasing'
33

44
describe "Array#all?" do
5-
@value_to_return = -> (_) { true }
5+
@value_to_return = -> _ { true }
66
it_behaves_like :array_iterable_and_tolerating_size_increasing, :all?
77

88
it "ignores the block if there is an argument" do

spec/ruby/core/array/any_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
end
2121

2222
describe 'with a block given' do
23-
@value_to_return = -> (_) { false }
23+
@value_to_return = -> _ { false }
2424
it_behaves_like :array_iterable_and_tolerating_size_increasing, :any?
2525

2626
it 'is false if the array is empty' do

spec/ruby/core/array/delete_if_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@
7777
it_behaves_like :enumeratorized_with_origin_size, :delete_if, [1,2,3]
7878
it_behaves_like :delete_if, :delete_if
7979

80-
@value_to_return = -> (_) { false }
80+
@value_to_return = -> _ { false }
8181
it_behaves_like :array_iterable_and_tolerating_size_increasing, :delete_if
8282
end

spec/ruby/core/array/drop_while_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require_relative 'shared/iterable_and_tolerating_size_increasing'
44

55
describe "Array#drop_while" do
6-
@value_to_return = -> (_) { true }
6+
@value_to_return = -> _ { true }
77
it_behaves_like :array_iterable_and_tolerating_size_increasing, :drop_while
88

99
it "removes elements from the start of the array while the block evaluates to true" do

spec/ruby/core/array/each_index_spec.rb

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

66
# Modifying a collection while the contents are being iterated
77
# gives undefined behavior. See
8-
# http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/23633
8+
# https://blade.ruby-lang.org/ruby-core/23633
99

1010
describe "Array#each_index" do
1111
before :each do

spec/ruby/core/array/fill_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
[1, 2, 3, 4, 5].fill(-2, -2, &@never_passed).should == [1, 2, 3, 4, 5]
212212
end
213213

214-
# See: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/17481
214+
# See: https://blade.ruby-lang.org/ruby-core/17481
215215
it "does not raise an exception if the given length is negative and its absolute value does not exceed the index" do
216216
-> { [1, 2, 3, 4].fill('a', 3, -1)}.should_not raise_error(ArgumentError)
217217
-> { [1, 2, 3, 4].fill('a', 3, -2)}.should_not raise_error(ArgumentError)

spec/ruby/core/array/none_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require_relative 'shared/iterable_and_tolerating_size_increasing'
33

44
describe "Array#none?" do
5-
@value_to_return = -> (_) { false }
5+
@value_to_return = -> _ { false }
66
it_behaves_like :array_iterable_and_tolerating_size_increasing, :none?
77

88
it "ignores the block if there is an argument" do

spec/ruby/core/array/one_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require_relative 'shared/iterable_and_tolerating_size_increasing'
33

44
describe "Array#one?" do
5-
@value_to_return = -> (_) { false }
5+
@value_to_return = -> _ { false }
66
it_behaves_like :array_iterable_and_tolerating_size_increasing, :one?
77

88
it "ignores the block if there is an argument" do

spec/ruby/core/array/reject_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,6 @@
153153
end
154154

155155
describe "Array#reject!" do
156-
@value_to_return = -> (_) { false }
156+
@value_to_return = -> _ { false }
157157
it_behaves_like :array_iterable_and_tolerating_size_increasing, :reject!
158158
end

spec/ruby/core/array/reverse_each_spec.rb

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

66
# Modifying a collection while the contents are being iterated
77
# gives undefined behavior. See
8-
# http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/23633
8+
# https://blade.ruby-lang.org/ruby-core/23633
99

1010
describe "Array#reverse_each" do
1111
before :each do

0 commit comments

Comments
 (0)