diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2026-02-05 20:38:00 +0100 |
|---|---|---|
| committer | Benoit Daloze <eregontp@gmail.com> | 2026-02-07 10:06:36 +0100 |
| commit | d066b9e01ccb2260fac8b2580c10e73335c7c7db (patch) | |
| tree | ece08ae6b0309149e09a640a3b41537a6485ee13 /spec/ruby/core/process | |
| parent | 96d00640978d78ede1f5b2b63e422cfd1e849891 (diff) | |
Refactor type error to be more consistent
[Bug #21864]
Co-Authored-By: Benoit Daloze <eregontp@gmail.com>
Diffstat (limited to 'spec/ruby/core/process')
| -rw-r--r-- | spec/ruby/core/process/detach_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/process/detach_spec.rb b/spec/ruby/core/process/detach_spec.rb index f13bda1f5d..f5f3b263f5 100644 --- a/spec/ruby/core/process/detach_spec.rb +++ b/spec/ruby/core/process/detach_spec.rb @@ -75,7 +75,7 @@ describe "Process.detach" do pid = MockObject.new('mock-enumerable') pid.should_receive(:to_int).and_return(:symbol) - -> { Process.detach(pid) }.should raise_error(TypeError, "can't convert MockObject to Integer (MockObject#to_int gives Symbol)") + -> { Process.detach(pid) }.should raise_consistent_error(TypeError, "can't convert MockObject into Integer (MockObject#to_int gives Symbol)") end end end |
