RSpec to Minitest
Use Assertions method instead of RSpec expect.
Cases
expect(response.status).to eq 400
expect(json["user"]["name"]).to eq current_user.name
expect(response.status).not_to eq(401)
Regexp
expect\((.+)\)\.(not_){0,1}to eq[\(\s](.+[^\}\)\s])[\)\s]{0,1}
assert_$2equal $3, $1
Cases
expect(json["user"]["avatar_url"]).to be_nil
expect(json["user"]["avatar_url"]).not_to be_nil
Regexp
expect\((.+)\)\.(not_){0,1}to be_nil
assert_$2nil $1
Cases
expect(state).to be_truthy
expect(state).not_to be_truthy
Regexp
expect\((.+)\)\.(not_){0,1}to be_truthy
assert_$2equal true, $1
Cases
expect(state).to be_falsey
expect(state).not_to be_falsey
Regexp
expect\((.+)\)\.(not_){0,1}to be_falsey
assert_$2equal false, $1