Skip to content

Commit 08fa232

Browse files
committed
1 parent a835509 commit 08fa232

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

spec/ruby/core/kernel/rand_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@
131131
x3 = Random.new(seed).rand(0.0..1)
132132

133133
x3.should be_kind_of(Float)
134-
x1.should equal(x3)
135-
x2.should equal(x3)
134+
x1.should eql(x3)
135+
x2.should eql(x3)
136136

137137
(0.0..1.0).should include(x3)
138138
end
@@ -152,8 +152,8 @@
152152
x3 = Random.new(seed).rand(0.0...1)
153153

154154
x3.should be_kind_of(Float)
155-
x1.should equal(x3)
156-
x2.should equal(x3)
155+
x1.should eql(x3)
156+
x2.should eql(x3)
157157

158158
(0.0...1.0).should include(x3)
159159
end

spec/ruby/library/matrix/exponent_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
end
3535
end
3636

37-
ruby_bug '#17521', ''...'3.0.1' do
37+
ruby_version_is '3.0.1' do # https://bugs.ruby-lang.org/issues/17521
3838
describe "that is 0" do
3939
it "returns the identity for square matrices" do
4040
m = Matrix[ [1, 1], [1, 1] ]

spec/ruby/optional/capi/ext/object_spec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ void Init_object_spec(void) {
462462
rb_define_method(cls, "rb_undef_alloc_func", undef_alloc_func, 1);
463463
rb_define_method(cls, "speced_allocator?", speced_allocator_p, 1);
464464
rb_define_method(cls, "custom_alloc_func?", custom_alloc_func_p, 1);
465-
rb_define_method(cls, "not_implemented_method", rb_f_notimplement, 1);
465+
rb_define_method(cls, "not_implemented_method", rb_f_notimplement, -1);
466466
}
467467

468468
#ifdef __cplusplus

0 commit comments

Comments
 (0)