mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
prepare for Minitest 6
This commit is contained in:
parent
09cb26bc1e
commit
6631bc569f
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ class ParametersMutatorsTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
test "delete returns nil when the key is not present" do
|
||||
assert_equal nil, @params[:person].delete(:first_name)
|
||||
assert_nil @params[:person].delete(:first_name)
|
||||
end
|
||||
|
||||
test "delete returns the value of the given block when the key is not present" do
|
||||
|
|
|
@ -315,7 +315,7 @@ class DurationTest < ActiveSupport::TestCase
|
|||
assert_equal(1, scalar <=> 5)
|
||||
assert_equal(0, scalar <=> 10)
|
||||
assert_equal(-1, scalar <=> 15)
|
||||
assert_equal(nil, scalar <=> "foo")
|
||||
assert_nil(scalar <=> "foo")
|
||||
end
|
||||
|
||||
def test_scalar_plus
|
||||
|
|
Loading…
Reference in a new issue