Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlock minitest version of google-cloud-storage #5207

Merged
merged 20 commits into from
Apr 16, 2020
Merged

Unlock minitest version of google-cloud-storage #5207

merged 20 commits into from
Apr 16, 2020

Commits on Apr 12, 2020

  1. Unlock minitest version under google-cloud-storage

    It allows to use minitest 5.14
    
    Minitest needs minitest/minitest#824 to support
    Ruby 2.8 keyword arguments, which would mean we need newer version of minitest to support Ruby 2.8.
    
    All gems under `google-cloud-ruby` repository locks minitest version
    5.11.x to avoid deprecation warnings for global expectations.
    Most of these warnings will be auto-corrected by `rubocop-minitest` in
    following commits.
    
    Refer #4110 and #4116
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    bf506c3 View commit details
    Browse the repository at this point in the history
  2. Allow rubocop-minitest to auto-correct global expectation warnings

    This commit will be reverted once auto-correct by rubocop-minitest
    finished.
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    5332c3f View commit details
    Browse the repository at this point in the history
  3. Use rubocop-minitest 0.8.0

    It supports auto-correction for global expectations warnings.
    
    Refer release notes of RuboCop Minitest 0.8.0 below.
    https://github.com/rubocop-hq/rubocop-minitest/releases/tag/v0.8.0
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    8562519 View commit details
    Browse the repository at this point in the history
  4. Apply bundle exec rubocop --only Minitest/GlobalExpectations -a

    ```
    Inspecting 77 files
    ............................CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC.
    
    Offenses:
    
    test/google/cloud/storage/bucket_acl_test.rb:34:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:35:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:36:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:37:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:52:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:53:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:54:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:55:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:85:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:86:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:87:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:88:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:91:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:92:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:93:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:94:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_include entity
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:152:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:153:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:154:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:155:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:158:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:159:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:160:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:161:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_include entity
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:208:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:209:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:210:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:211:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:215:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:216:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:217:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:236:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:237:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:238:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:239:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:243:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:244:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_acl_test.rb:245:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:58:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file) instead.
        new_file.must_be_kind_of Google::Cloud::Storage::File
        ^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:59:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.name) instead.
        new_file.name.must_equal file_3_name
        ^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:72:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file) instead.
        new_file.must_be_kind_of Google::Cloud::Storage::File
        ^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:73:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.name) instead.
        new_file.name.must_equal file_3_name
        ^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:89:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file) instead.
        new_file.must_be_kind_of Google::Cloud::Storage::File
        ^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:90:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.name) instead.
        new_file.name.must_equal file_3_name
        ^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:103:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file) instead.
        new_file.must_be_kind_of Google::Cloud::Storage::File
        ^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:104:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.name) instead.
        new_file.name.must_equal file_3_name
        ^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:117:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file) instead.
        new_file.must_be_kind_of Google::Cloud::Storage::File
        ^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:118:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.name) instead.
        new_file.name.must_equal file_3_name
        ^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:131:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file) instead.
        new_file.must_be_kind_of Google::Cloud::Storage::File
        ^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:132:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.name) instead.
        new_file.name.must_equal file_3_name
        ^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:133:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.user_project) instead.
        new_file.user_project.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:146:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file) instead.
        new_file.must_be_kind_of Google::Cloud::Storage::File
        ^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:147:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.name) instead.
        new_file.name.must_equal file_3_name
        ^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:180:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file) instead.
        new_file.must_be_kind_of Google::Cloud::Storage::File
        ^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:181:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.name) instead.
        new_file.name.must_equal file_3_name
        ^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:214:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file) instead.
        new_file.must_be_kind_of Google::Cloud::Storage::File
        ^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:215:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.name) instead.
        new_file.name.must_equal file_3_name
        ^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_compose_test.rb:216:5: C: [Corrected] Minitest/GlobalExpectations: Use _(new_file.user_project) instead.
        new_file.user_project.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:34:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:35:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:36:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:51:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:52:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:53:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:83:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:84:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:85:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:88:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:89:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:90:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include reader_entity
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:120:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:121:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:122:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:125:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:126:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:127:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include reader_entity
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:146:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:147:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:148:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:152:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:153:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:172:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:173:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:174:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:178:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_default_acl_test.rb:179:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_encryption_test.rb:66:7: C: [Corrected] Minitest/GlobalExpectations: Use _(file.name) instead.
          file.name.must_equal file_name
          ^^^^^^^^^
    test/google/cloud/storage/bucket_encryption_test.rb:67:7: C: [Corrected] Minitest/GlobalExpectations: Use _(file.user_project) instead.
          file.user_project.must_be :nil?
          ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_encryption_test.rb:68:7: C: [Corrected] Minitest/GlobalExpectations: Use _(file) instead.
          file.wont_be :lazy?
          ^^^^
    test/google/cloud/storage/bucket_encryption_test.rb:83:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_encryption_test.rb:85:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.wont_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_encryption_test.rb:86:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_be_kind_of String
          ^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_encryption_test.rb:87:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_equal kms_key
          ^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_encryption_test.rb:101:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket_with_key.default_kms_key) instead.
          bucket_with_key.default_kms_key.wont_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_encryption_test.rb:104:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket_with_key.default_kms_key) instead.
          bucket_with_key.default_kms_key.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:77:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:78:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAE="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:79:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:80:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles) instead.
          policy.roles.must_be_kind_of Hash
          ^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:81:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles.size) instead.
          policy.roles.size.must_equal 1
          ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:82:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"]) instead.
          policy.roles["roles/storage.objectViewer"].must_be_kind_of Array
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:83:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].count) instead.
          policy.roles["roles/storage.objectViewer"].count.must_equal 1
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:84:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].first) instead.
          policy.roles["roles/storage.objectViewer"].first.must_equal "user:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:95:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:96:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAE="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:97:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:98:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles) instead.
          policy.roles.must_be_kind_of Hash
          ^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:99:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles.size) instead.
          policy.roles.size.must_equal 1
          ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:100:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"]) instead.
          policy.roles["roles/storage.objectViewer"].must_be_kind_of Array
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:101:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].count) instead.
          policy.roles["roles/storage.objectViewer"].count.must_equal 1
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:102:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].first) instead.
          policy.roles["roles/storage.objectViewer"].first.must_equal "user:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:113:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:114:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAE="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:115:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:116:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles) instead.
          policy.roles.must_be_kind_of Hash
          ^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:117:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles.size) instead.
          policy.roles.size.must_equal 1
          ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:118:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"]) instead.
          policy.roles["roles/storage.objectViewer"].must_be_kind_of Array
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:119:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].count) instead.
          policy.roles["roles/storage.objectViewer"].count.must_equal 1
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:120:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].first) instead.
          policy.roles["roles/storage.objectViewer"].first.must_equal "user:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:131:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:132:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAF="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:133:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:134:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles) instead.
          policy.roles.must_be_kind_of Hash
          ^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:135:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles.size) instead.
          policy.roles.size.must_equal 1
          ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:136:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"]) instead.
          policy.roles["roles/storage.objectViewer"].must_be_kind_of Array
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:137:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].count) instead.
          policy.roles["roles/storage.objectViewer"].count.must_equal 2
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:138:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].first) instead.
          policy.roles["roles/storage.objectViewer"].first.must_equal "user:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:139:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].last) instead.
          policy.roles["roles/storage.objectViewer"].last.must_equal "serviceAccount:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:150:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:151:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAF="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:152:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:153:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles) instead.
          policy.roles.must_be_kind_of Hash
          ^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:154:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles.size) instead.
          policy.roles.size.must_equal 1
          ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:155:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"]) instead.
          policy.roles["roles/storage.objectViewer"].must_be_kind_of Array
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:156:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].count) instead.
          policy.roles["roles/storage.objectViewer"].count.must_equal 2
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:157:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].first) instead.
          policy.roles["roles/storage.objectViewer"].first.must_equal "user:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:158:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].last) instead.
          policy.roles["roles/storage.objectViewer"].last.must_equal "serviceAccount:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:173:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:174:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAF="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:175:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:176:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles) instead.
          policy.roles.must_be_kind_of Hash
          ^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:177:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles.size) instead.
          policy.roles.size.must_equal 1
          ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:178:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"]) instead.
          policy.roles["roles/storage.objectViewer"].must_be_kind_of Array
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:179:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].count) instead.
          policy.roles["roles/storage.objectViewer"].count.must_equal 2
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:180:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].first) instead.
          policy.roles["roles/storage.objectViewer"].first.must_equal "user:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:181:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].last) instead.
          policy.roles["roles/storage.objectViewer"].last.must_equal "serviceAccount:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:196:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:197:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAF="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:198:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:199:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles) instead.
          policy.roles.must_be_kind_of Hash
          ^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:200:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles.size) instead.
          policy.roles.size.must_equal 1
          ^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:201:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"]) instead.
          policy.roles["roles/storage.objectViewer"].must_be_kind_of Array
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:202:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].count) instead.
          policy.roles["roles/storage.objectViewer"].count.must_equal 2
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:203:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].first) instead.
          policy.roles["roles/storage.objectViewer"].first.must_equal "user:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:204:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles["roles/storage.objectViewer"].last) instead.
          policy.roles["roles/storage.objectViewer"].last.must_equal "serviceAccount:[email protected]"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:283:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV3
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:284:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAE="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:285:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:286:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings) instead.
          policy.bindings.must_be_kind_of Google::Cloud::Storage::Policy::Bindings
          ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:287:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a.count) instead.
          policy.bindings.to_a.count.must_equal 1
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:288:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0]) instead.
          policy.bindings.to_a[0].must_be_kind_of Google::Cloud::Storage::Policy::Binding
          ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:289:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].role) instead.
          policy.bindings.to_a[0].role.must_equal "roles/storage.objectViewer"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:290:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].members) instead.
          policy.bindings.to_a[0].members.must_equal ["user:[email protected]"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:291:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].condition) instead.
          policy.bindings.to_a[0].condition.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:302:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV3
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:303:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAE="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:304:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:305:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings) instead.
          policy.bindings.must_be_kind_of Google::Cloud::Storage::Policy::Bindings
          ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:306:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a.count) instead.
          policy.bindings.to_a.count.must_equal 1
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:307:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0]) instead.
          policy.bindings.to_a[0].must_be_kind_of Google::Cloud::Storage::Policy::Binding
          ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:308:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].role) instead.
          policy.bindings.to_a[0].role.must_equal "roles/storage.objectViewer"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:309:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].members) instead.
          policy.bindings.to_a[0].members.must_equal ["user:[email protected]"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:310:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].condition) instead.
          policy.bindings.to_a[0].condition.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:321:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV3
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:322:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAF="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:323:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 3
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:324:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings) instead.
          policy.bindings.must_be_kind_of Google::Cloud::Storage::Policy::Bindings
          ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:325:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a.count) instead.
          policy.bindings.to_a.count.must_equal 2
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:326:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0]) instead.
          policy.bindings.to_a[0].must_be_kind_of Google::Cloud::Storage::Policy::Binding
          ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:327:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].role) instead.
          policy.bindings.to_a[0].role.must_equal "roles/storage.objectViewer"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:328:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].members) instead.
          policy.bindings.to_a[0].members.must_equal ["user:[email protected]"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:329:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].condition) instead.
          policy.bindings.to_a[0].condition.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:330:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1]) instead.
          policy.bindings.to_a[1].must_be_kind_of Google::Cloud::Storage::Policy::Binding
          ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:331:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].role) instead.
          policy.bindings.to_a[1].role.must_equal "roles/storage.objectViewer"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:332:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].members) instead.
          policy.bindings.to_a[1].members.must_equal ["serviceAccount:[email protected]"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:333:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition) instead.
          policy.bindings.to_a[1].condition.must_be_kind_of Google::Cloud::Storage::Policy::Condition
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:334:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.title) instead.
          policy.bindings.to_a[1].condition.title.must_equal "always-true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:335:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.description) instead.
          policy.bindings.to_a[1].condition.description.must_equal "test condition always-true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:336:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.expression) instead.
          policy.bindings.to_a[1].condition.expression.must_equal "true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:347:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV3
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:348:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAF="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:349:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 3
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:350:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings) instead.
          policy.bindings.must_be_kind_of Google::Cloud::Storage::Policy::Bindings
          ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:351:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a.count) instead.
          policy.bindings.to_a.count.must_equal 2
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:352:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0]) instead.
          policy.bindings.to_a[0].must_be_kind_of Google::Cloud::Storage::Policy::Binding
          ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:353:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].role) instead.
          policy.bindings.to_a[0].role.must_equal "roles/storage.objectViewer"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:354:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].members) instead.
          policy.bindings.to_a[0].members.must_equal ["user:[email protected]"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:355:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].condition) instead.
          policy.bindings.to_a[0].condition.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:356:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1]) instead.
          policy.bindings.to_a[1].must_be_kind_of Google::Cloud::Storage::Policy::Binding
          ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:357:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].role) instead.
          policy.bindings.to_a[1].role.must_equal "roles/storage.objectViewer"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:358:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].members) instead.
          policy.bindings.to_a[1].members.must_equal ["serviceAccount:[email protected]"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:359:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition) instead.
          policy.bindings.to_a[1].condition.must_be_kind_of Google::Cloud::Storage::Policy::Condition
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:360:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.title) instead.
          policy.bindings.to_a[1].condition.title.must_equal "always-true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:361:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.description) instead.
          policy.bindings.to_a[1].condition.description.must_equal "test condition always-true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:362:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.expression) instead.
          policy.bindings.to_a[1].condition.expression.must_equal "true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:386:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV3
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:387:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAF="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:388:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 3
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:389:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings) instead.
          policy.bindings.must_be_kind_of Google::Cloud::Storage::Policy::Bindings
          ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:390:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a.count) instead.
          policy.bindings.to_a.count.must_equal 2
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:391:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0]) instead.
          policy.bindings.to_a[0].must_be_kind_of Google::Cloud::Storage::Policy::Binding
          ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:392:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].role) instead.
          policy.bindings.to_a[0].role.must_equal "roles/storage.objectViewer"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:393:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].members) instead.
          policy.bindings.to_a[0].members.must_equal ["user:[email protected]"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:394:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].condition) instead.
          policy.bindings.to_a[0].condition.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:395:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1]) instead.
          policy.bindings.to_a[1].must_be_kind_of Google::Cloud::Storage::Policy::Binding
          ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:396:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].role) instead.
          policy.bindings.to_a[1].role.must_equal "roles/storage.objectViewer"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:397:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].members) instead.
          policy.bindings.to_a[1].members.must_equal ["serviceAccount:[email protected]"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:398:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition) instead.
          policy.bindings.to_a[1].condition.must_be_kind_of Google::Cloud::Storage::Policy::Condition
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:399:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.title) instead.
          policy.bindings.to_a[1].condition.title.must_equal "always-true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:400:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.description) instead.
          policy.bindings.to_a[1].condition.description.must_equal "test condition always-true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:401:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.expression) instead.
          policy.bindings.to_a[1].condition.expression.must_equal "true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:425:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV3
          ^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:426:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.etag) instead.
          policy.etag.must_equal "CAF="
          ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:427:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 3
          ^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:428:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings) instead.
          policy.bindings.must_be_kind_of Google::Cloud::Storage::Policy::Bindings
          ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:429:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a.count) instead.
          policy.bindings.to_a.count.must_equal 2
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:430:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0]) instead.
          policy.bindings.to_a[0].must_be_kind_of Google::Cloud::Storage::Policy::Binding
          ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:431:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].role) instead.
          policy.bindings.to_a[0].role.must_equal "roles/storage.objectViewer"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:432:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].members) instead.
          policy.bindings.to_a[0].members.must_equal ["user:[email protected]"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:433:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[0].condition) instead.
          policy.bindings.to_a[0].condition.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:434:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1]) instead.
          policy.bindings.to_a[1].must_be_kind_of Google::Cloud::Storage::Policy::Binding
          ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:435:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].role) instead.
          policy.bindings.to_a[1].role.must_equal "roles/storage.objectViewer"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:436:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].members) instead.
          policy.bindings.to_a[1].members.must_equal ["serviceAccount:[email protected]"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:437:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition) instead.
          policy.bindings.to_a[1].condition.must_be_kind_of Google::Cloud::Storage::Policy::Condition
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:438:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.title) instead.
          policy.bindings.to_a[1].condition.title.must_equal "always-true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:439:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.description) instead.
          policy.bindings.to_a[1].condition.description.must_equal "test condition always-true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:440:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.to_a[1].condition.expression) instead.
          policy.bindings.to_a[1].condition.expression.must_equal "true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:454:5: C: [Corrected] Minitest/GlobalExpectations: Use _(permissions) instead.
        permissions.must_equal ["storage.buckets.get"]
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_iam_test.rb:467:5: C: [Corrected] Minitest/GlobalExpectations: Use _(permissions) instead.
        permissions.must_equal ["storage.buckets.get"]
        ^^^^^^^^^^^
    test/google/cloud/storage/bucket_lock_retention_policy_test.rb:44:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket_with_retention_policy.retention_period) instead.
        bucket_with_retention_policy.retention_period.must_equal bucket_retention_period
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_lock_retention_policy_test.rb:45:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket_with_retention_policy.retention_effective_at) instead.
        bucket_with_retention_policy.retention_effective_at.must_be_within_delta bucket_retention_effective_at
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_lock_retention_policy_test.rb:46:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket_with_retention_policy.retention_policy_locked?) instead.
        bucket_with_retention_policy.retention_policy_locked?.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_lock_retention_policy_test.rb:47:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket_with_retention_policy.default_event_based_hold?) instead.
        bucket_with_retention_policy.default_event_based_hold?.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_lock_retention_policy_test.rb:58:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_period) instead.
        bucket.retention_period.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_lock_retention_policy_test.rb:62:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_period) instead.
        bucket.retention_period.must_equal bucket_retention_period
        ^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_lock_retention_policy_test.rb:63:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_effective_at) instead.
        bucket.retention_effective_at.must_be_within_delta bucket_retention_effective_at
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_lock_retention_policy_test.rb:75:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_event_based_hold?) instead.
        bucket.default_event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_lock_retention_policy_test.rb:79:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_event_based_hold?) instead.
        bucket.default_event_based_hold?.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_lock_retention_policy_test.rb:94:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.location_type) instead.
        bucket.location_type.must_equal "multi-region"
        ^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:48:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.id) instead.
        notification.id.must_equal notification_id
        ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:49:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.custom_attrs) instead.
        notification.custom_attrs.must_equal custom_attrs
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:50:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.event_types) instead.
        notification.event_types.must_equal event_types
        ^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:51:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.prefix) instead.
        notification.prefix.must_equal filename_prefix
        ^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:52:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.payload) instead.
        notification.payload.must_equal payload
        ^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:53:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.topic) instead.
        notification.topic.must_equal topic_name_full_path
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:54:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.user_project) instead.
        notification.user_project.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:71:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.payload) instead.
        notification.payload.must_equal "JSON_API_V1"
        ^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:88:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.event_types) instead.
        notification.event_types.must_equal event_types
        ^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:105:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.event_types) instead.
        notification.event_types.must_equal event_types
        ^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:131:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.user_project) instead.
        notification.user_project.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:147:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notifications.size) instead.
        notifications.size.must_equal num_notifications
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:149:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification) instead.
          notification.must_be_kind_of Google::Cloud::Storage::Notification
          ^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:150:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.user_project) instead.
          notification.user_project.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:178:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notifications.size) instead.
        notifications.size.must_equal num_notifications
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:180:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification) instead.
          notification.must_be_kind_of Google::Cloud::Storage::Notification
          ^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:181:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.user_project) instead.
          notification.user_project.must_equal true
          ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:198:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.id) instead.
        notification.id.must_equal notification_id
        ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:199:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.custom_attrs) instead.
        notification.custom_attrs.must_equal custom_attrs
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:200:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.event_types) instead.
        notification.event_types.must_equal event_types
        ^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:201:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.prefix) instead.
        notification.prefix.must_equal filename_prefix
        ^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:202:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.payload) instead.
        notification.payload.must_equal payload
        ^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:203:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.topic) instead.
        notification.topic.must_equal topic_name_full_path
        ^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:204:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.user_project) instead.
        notification.user_project.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_notification_test.rb:234:5: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.user_project) instead.
        notification.user_project.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:48:7: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.url) instead.
          signed_post.url.must_equal Google::Cloud::Storage::GOOGLEAPIS_URL
          ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:49:7: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.fields[:GoogleAccessId]) instead.
          signed_post.fields[:GoogleAccessId].must_equal "native_client_email"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:50:7: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.fields[:signature]) instead.
          signed_post.fields[:signature].must_equal Base64.strict_encode64("native-signature").delete("\n")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:51:7: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.fields[:key]) instead.
          signed_post.fields[:key].must_equal [bucket_name, file_path_encoded].join("/")
          ^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:68:5: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.url) instead.
        signed_post.url.must_equal Google::Cloud::Storage::GOOGLEAPIS_URL
        ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:69:5: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.fields[:GoogleAccessId]) instead.
        signed_post.fields[:GoogleAccessId].must_equal "native_client_email"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:70:5: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.fields[:signature]) instead.
        signed_post.fields[:signature].must_equal Base64.strict_encode64("native-signature").delete("\n")
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:71:5: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.fields[:key]) instead.
        signed_post.fields[:key].must_equal [bucket_name, file_path_encoded].join("/")
        ^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:89:5: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.url) instead.
        signed_post.url.must_equal Google::Cloud::Storage::GOOGLEAPIS_URL
        ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:90:5: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.fields[:GoogleAccessId]) instead.
        signed_post.fields[:GoogleAccessId].must_equal "native_client_email"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:91:5: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.fields[:signature]) instead.
        signed_post.fields[:signature].must_equal Base64.strict_encode64("native-signature").delete("\n")
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_post_object_test.rb:92:5: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_post.fields[:key]) instead.
        signed_post.fields[:key].must_equal [bucket_name, file_path_special_variable].join("/")
        ^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_signed_url_v2_test.rb:34:7: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_uri.path) instead.
          signed_uri.path.must_equal "/bucket/"
          ^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_signed_url_v2_test.rb:36:7: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_url_params["GoogleAccessId"]) instead.
          signed_url_params["GoogleAccessId"].must_equal ["native_client_email"]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_signed_url_v2_test.rb:37:7: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_url_params["Signature"]) instead.
          signed_url_params["Signature"].must_equal [Base64.strict_encode64("native-signature").delete("\n")]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    test/google/cloud/storage/bucket_signed_url_v2_test.rb:53:7: C: [Corrected] Minitest/GlobalExpectations: Use _(signed_url_params["Googl…
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    974778a View commit details
    Browse the repository at this point in the history
  5. Replace must_be_kind_of File with must_be_kind_of Tempfile in tes…

    …t/google/cloud/storage/file_test.rb
    
    * Addressed these failures:
    ```
    % bundle exec ruby -w -Itest test/google/cloud/storage/file_test.rb
    ... snip ...
      1) Failure:
    Google::Cloud::Storage::File::mock_storage#test_0008_can download itself to a file [test/google/cloud/storage/file_test.rb:174]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200412-3564-aqgbxs> to be a kind of File, not Tempfile.
    
      2) Failure:
    Google::Cloud::Storage::File::mock_storage#test_0012_can download itself to a file with user_project set to true [test/google/cloud/storage/file_test.rb:273]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200412-3564-pm1xqf> to be a kind of File, not Tempfile.
    
      3) Failure:
    Google::Cloud::Storage::File::mock_storage#test_0010_can download itself to a file when Content-Encoding gzip response header with skip_decompress [test/google/cloud/storage/file_test.rb:226]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200412-3564-i3y0wk> to be a kind of File, not Tempfile.
    
      4) Failure:
    Google::Cloud::Storage::File::mock_storage#test_0011_can download itself to a file by path [test/google/cloud/storage/file_test.rb:250]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200412-3564-47xfjn> to be a kind of File, not Tempfile.
    
    73 runs, 89 assertions, 4 failures, 0 errors, 0 skips
    %
    ```
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    35a6e61 View commit details
    Browse the repository at this point in the history
  6. Replace must_be_kind_of File with must_be_kind_of Tempfile in tes…

    …t/google/cloud/storage/lazy/file_test.rb
    
    * Addressed these failures:
    ```
    % bundle exec ruby -w -Itest test/google/cloud/storage/lazy/file_test.rb
    ... snip ...
      1) Failure:
    Google::Cloud::Storage::File::lazy::mock_storage#test_0012_can download itself to a file with user_project set to true [test/google/cloud/storage/lazy/file_test.rb:245]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200412-4137-1s6oqhb> to be a kind of File, not Tempfile.
    
      2) Failure:
    Google::Cloud::Storage::File::lazy::mock_storage#test_0011_can download itself to a file by path [test/google/cloud/storage/lazy/file_test.rb:222]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200412-4137-10t8929> to be a kind of File, not Tempfile.
    
      3) Failure:
    Google::Cloud::Storage::File::lazy::mock_storage#test_0010_can download itself to a file [test/google/cloud/storage/lazy/file_test.rb:199]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200412-4137-1qho43z> to be a kind of File, not Tempfile.
    
    45 runs, 45 assertions, 3 failures, 0 errors, 0 skips
    %
    ```
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    c28184d View commit details
    Browse the repository at this point in the history
  7. Replace must_be_kind_of File with must_be_kind_of Tempfile in tes…

    …t/google/cloud/storage/project_anonymous_test.rb
    
    * Addressed this failure:
    ```
    % bundle exec ruby -w -Itest test/google/cloud/storage/project_anonymous_test.rb -n /test_0006_downloads/
    ... snip ...
    F
    
    Finished in 0.014027s, 71.2911 runs/s, 71.2911 assertions/s.
    
      1) Failure:
    Google::Cloud::Storage::Project::anonymous::mock_storage#test_0006_downloads a public file [test/google/cloud/storage/project_anonymous_test.rb:125]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200412-4402-vgbk13> to be a kind of File, not Tempfile.
    
    1 runs, 1 assertions, 1 failures, 0 errors, 0 skips
    %
    ```
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    a9c135e View commit details
    Browse the repository at this point in the history
  8. Address these two failures of `google-cloud-storage/test/google/cloud…

    …/storage/project_anonymous_test.rb`
    
    Because object of `Object` class does not have `_` method defined
    It is owned by `Minitest::Spec::DSL::InstanceMethods`.
    
    Refer rubocop/rubocop-minitest#68 (comment)
    
    ```
    % bundle exec ruby -w -Itest test/google/cloud/storage/project_anonymous_test.rb -n /test_0001_raises\|test_0002_raises/
    ... snip ...
    
    FF
    
    Finished in 0.002656s, 753.0120 runs/s, 753.0120 assertions/s.
    
      1) Failure:
    Google::Cloud::Storage::Project::anonymous::mock_storage#test_0002_raises when listing buckets without authentication [test/google/cloud/storage/project_anonymous_test.rb:41]:
    [Google::Cloud::UnauthenticatedError] exception expected, not
    Class: <NoMethodError>
    Message: <"undefined method `_' for #<Object:0x00007fae26010460>">
    ---Backtrace---
    test/google/cloud/storage/project_anonymous_test.rb:36:in `list_buckets'
    /Users/yahonda/src/github.com/googleapis/google-cloud-ruby/google-cloud-storage/lib/google/cloud/storage/service.rb:76:in `block in list_buckets'
    /Users/yahonda/src/github.com/googleapis/google-cloud-ruby/google-cloud-storage/lib/google/cloud/storage/service.rb:631:in `execute'
    /Users/yahonda/src/github.com/googleapis/google-cloud-ruby/google-cloud-storage/lib/google/cloud/storage/service.rb:75:in `list_buckets'
    /Users/yahonda/src/github.com/googleapis/google-cloud-ruby/google-cloud-storage/lib/google/cloud/storage/project.rb:153:in `buckets'
    test/google/cloud/storage/project_anonymous_test.rb:41:in `block (3 levels) in <main>'
    ---------------
    
      2) Failure:
    Google::Cloud::Storage::Project::anonymous::mock_storage#test_0001_raises when creating a bucket without authentication [test/google/cloud/storage/project_anonymous_test.rb:30]:
    [Google::Cloud::UnauthenticatedError] exception expected, not
    Class: <NoMethodError>
    Message: <"undefined method `_' for #<Object:0x00007fae658703c8>">
    ---Backtrace---
    test/google/cloud/storage/project_anonymous_test.rb:25:in `insert_bucket'
    /Users/yahonda/src/github.com/googleapis/google-cloud-ruby/google-cloud-storage/lib/google/cloud/storage/service.rb:98:in `block in insert_bucket'
    /Users/yahonda/src/github.com/googleapis/google-cloud-ruby/google-cloud-storage/lib/google/cloud/storage/service.rb:631:in `execute'
    /Users/yahonda/src/github.com/googleapis/google-cloud-ruby/google-cloud-storage/lib/google/cloud/storage/service.rb:97:in `insert_bucket'
    /Users/yahonda/src/github.com/googleapis/google-cloud-ruby/google-cloud-storage/lib/google/cloud/storage/project.rb:379:in `create_bucket'
    test/google/cloud/storage/project_anonymous_test.rb:30:in `block (3 levels) in <main>'
    ---------------
    
    2 runs, 2 assertions, 2 failures, 0 errors, 0 skips
    %
    ```
    
    2 Revert false positives of `google-cloud-storage/test/google/cloud/storage/project_anonymous_test.rb
    
    ```
    % bundle exec ruby -w -Itest test/google/cloud/storage/project_anonymous_test.rb -n /test_0006_downloads/
    ... snip ...
    
      1) Failure:
    Google::Cloud::Storage::Project::anonymous::mock_storage#test_0006_downloads a public file [test/google/cloud/storage/project_anonymous_test.rb:125]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200410-6349-nvppgj> to be a kind of File, not Tempfile.
    
    1 runs, 1 assertions, 1 failures, 0 errors, 0 skips
    %
    ```
    
    * Reverting auto-correct generates these warnings as expected.
    
    ```
    DEPRECATED: global use of must_be_kind_of from /Users/yahonda/.rbenv/versions/2.6.6/lib/ruby/2.6.0/delegate.rb:83. Use _(obj).must_be_kind_of instead. This will fail in Minitest 6.
    ```
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    d00f65d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d9fc3ad View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    56c8c29 View commit details
    Browse the repository at this point in the history
  11. Auto correct test files under acceptance directory

    ```
    % bundle exec rubocop --only Minitest/GlobalExpectations -a                                                                                                                                         unlock_minitest
    Inspecting 49 files
    .CCCCCCCCCCCCCCCCCCCC............................
    
    Offenses:
    
    acceptance/storage/bucket_acl_test.rb:31:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:33:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:35:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:37:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:41:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.wont_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:43:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:45:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:47:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:51:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_include user_val
        ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:53:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.must_include user_val
        ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:55:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.must_include user_val
        ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:57:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.must_include user_val
        ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:61:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:63:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:65:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:67:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:72:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:74:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:76:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:78:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.wont_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:82:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:83:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:84:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:88:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:89:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:90:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:92:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:96:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:100:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:104:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
        bucket.acl.owners.wont_be  :empty?
        ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:105:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:106:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
        bucket.acl.readers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:108:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.wont_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:112:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.wont_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_acl_test.rb:116:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
        bucket.acl.writers.wont_include user_val
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:32:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:34:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:36:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:38:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:43:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.wont_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:45:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.must_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:47:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.must_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:49:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.must_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:53:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:55:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:57:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:59:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:64:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:66:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:68:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:70:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_include "allAuthenticatedUsers"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:74:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.must_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:75:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:79:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.must_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:80:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:82:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:86:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:90:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:94:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
        bucket.default_acl.owners.must_be  :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:95:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.must_be :empty?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:97:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:101:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_default_acl_test.rb:105:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
        bucket.default_acl.readers.wont_include user_val
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_encryption_test.rb:51:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.wont_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_encryption_test.rb:52:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_equal kms_key
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_encryption_test.rb:54:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.wont_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_encryption_test.rb:55:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_equal kms_key
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_encryption_test.rb:59:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_equal kms_key
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_encryption_test.rb:61:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_equal kms_key_2
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_encryption_test.rb:63:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_equal kms_key_2
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_encryption_test.rb:67:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_equal kms_key
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_encryption_test.rb:69:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_encryption_test.rb:71:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_kms_key) instead.
          bucket.default_kms_key.must_be :nil?
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:45:5: C: [Corrected] Minitest/GlobalExpectations: Use _(response.code) instead.
        response.code.must_equal "204"
        ^^^^^^^^^^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:47:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file) instead.
        file.wont_be :nil?
        ^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:51:7: C: [Corrected] Minitest/GlobalExpectations: Use _(File.read(downloaded.path, mode: "rb")) instead.
          File.read(downloaded.path, mode: "rb").must_equal File.read(data, mode: "rb")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:70:5: C: [Corrected] Minitest/GlobalExpectations: Use _(response.code) instead.
        response.code.must_equal "204"
        ^^^^^^^^^^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:72:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file) instead.
        file.wont_be :nil?
        ^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:76:7: C: [Corrected] Minitest/GlobalExpectations: Use _(File.read(downloaded.path, mode: "rb")) instead.
          File.read(downloaded.path, mode: "rb").must_equal File.read(data, mode: "rb")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:100:5: C: [Corrected] Minitest/GlobalExpectations: Use _(response.code) instead.
        response.code.must_equal "204"
        ^^^^^^^^^^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:102:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file) instead.
        file.wont_be :nil?
        ^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:106:7: C: [Corrected] Minitest/GlobalExpectations: Use _(File.read(downloaded.path, mode: "rb")) instead.
          File.read(downloaded.path, mode: "rb").must_equal File.read(data, mode: "rb")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:129:5: C: [Corrected] Minitest/GlobalExpectations: Use _(response.code) instead.
        response.code.must_equal "200"
        ^^^^^^^^^^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:131:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file) instead.
        file.wont_be :nil?
        ^^^^
    acceptance/storage/bucket_generate_signed_post_policy_v4_test.rb:135:7: C: [Corrected] Minitest/GlobalExpectations: Use _(File.read(downloaded.path, mode: "rb")) instead.
          File.read(downloaded.path, mode: "rb").must_equal File.read(data, mode: "rb")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:48:9: C: [Corrected] Minitest/GlobalExpectations: Use _(b.retention_period) instead.
            b.retention_period.must_equal 10
            ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:49:9: C: [Corrected] Minitest/GlobalExpectations: Use _(b.retention_effective_at) instead.
            b.retention_effective_at.must_be_kind_of DateTime
            ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:50:9: C: [Corrected] Minitest/GlobalExpectations: Use _(b.retention_policy_locked?) instead.
            b.retention_policy_locked?.must_equal false
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:51:9: C: [Corrected] Minitest/GlobalExpectations: Use _(b.default_event_based_hold?) instead.
            b.default_event_based_hold?.must_equal true
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:64:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_period) instead.
        bucket.retention_period.must_equal 10
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:65:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_effective_at) instead.
        bucket.retention_effective_at.must_be_kind_of DateTime
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:66:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_policy_locked?) instead.
        bucket.retention_policy_locked?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:67:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_event_based_hold?) instead.
        bucket.default_event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:76:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.temporary_hold?) instead.
        file.temporary_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:77:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.event_based_hold?) instead.
        file.event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:78:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.retention_expires_at) instead.
        file.retention_expires_at.must_be_kind_of DateTime
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:82:7: C: [Corrected] Minitest/GlobalExpectations: Use _(f.temporary_hold?) instead.
          f.temporary_hold?.must_equal false
          ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:83:7: C: [Corrected] Minitest/GlobalExpectations: Use _(f.event_based_hold?) instead.
          f.event_based_hold?.must_equal false
          ^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:84:7: C: [Corrected] Minitest/GlobalExpectations: Use _(f.retention_expires_at) instead.
          f.retention_expires_at.must_be_kind_of DateTime
          ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:88:5: C: [Corrected] Minitest/GlobalExpectations: Use _(err.message) instead.
        err.message.must_match /is subject to bucket's retention policy/
        ^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:95:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_period) instead.
        bucket.retention_period.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:96:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_effective_at) instead.
        bucket.retention_effective_at.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:97:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_policy_locked?) instead.
        bucket.retention_policy_locked?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:98:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_event_based_hold?) instead.
        bucket.default_event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:101:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.temporary_hold?) instead.
        file.temporary_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:102:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.event_based_hold?) instead.
        file.event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:103:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.retention_expires_at) instead.
        file.retention_expires_at.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:115:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_period) instead.
        bucket.retention_period.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:116:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_effective_at) instead.
        bucket.retention_effective_at.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:117:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_policy_locked?) instead.
        bucket.retention_policy_locked?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:118:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_event_based_hold?) instead.
        bucket.default_event_based_hold?.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:124:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.temporary_hold?) instead.
        file.temporary_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:125:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.event_based_hold?) instead.
        file.event_based_hold?.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:126:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.retention_expires_at) instead.
        file.retention_expires_at.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:129:5: C: [Corrected] Minitest/GlobalExpectations: Use _(err.message) instead.
        err.message.must_match /is under active Event-Based hold/
        ^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:136:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_period) instead.
        bucket.retention_period.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:137:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_effective_at) instead.
        bucket.retention_effective_at.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:138:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_policy_locked?) instead.
        bucket.retention_policy_locked?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:139:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_event_based_hold?) instead.
        bucket.default_event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:144:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.temporary_hold?) instead.
        file.temporary_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:145:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.event_based_hold?) instead.
        file.event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:146:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.retention_expires_at) instead.
        file.retention_expires_at.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:152:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_period) instead.
        bucket.retention_period.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:153:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_effective_at) instead.
        bucket.retention_effective_at.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:154:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_policy_locked?) instead.
        bucket.retention_policy_locked?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:155:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_event_based_hold?) instead.
        bucket.default_event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:161:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.temporary_hold?) instead.
        file.temporary_hold?.must_equal true
        ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:162:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.event_based_hold?) instead.
        file.event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:163:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.retention_expires_at) instead.
        file.retention_expires_at.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:166:5: C: [Corrected] Minitest/GlobalExpectations: Use _(err.message) instead.
        err.message.must_match /is under active Temporary hold/
        ^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:171:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.temporary_hold?) instead.
        file.temporary_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:172:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.event_based_hold?) instead.
        file.event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:173:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.retention_expires_at) instead.
        file.retention_expires_at.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:184:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_period) instead.
        bucket.retention_period.must_equal 10
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:185:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_policy_locked?) instead.
        bucket.retention_policy_locked?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:190:5: C: [Corrected] Minitest/GlobalExpectations: Use _(err.message) instead.
        err.message.must_match /Required parameter: ifMetagenerationMatch/
        ^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:199:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_period) instead.
        bucket.retention_period.must_equal 10
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:200:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_policy_locked?) instead.
        bucket.retention_policy_locked?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:205:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_policy_locked?) instead.
        bucket.retention_policy_locked?.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:207:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.location_type) instead.
        bucket.location_type.must_equal "multi-region"
        ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_lock_retention_policy_test.rb:214:5: C: [Corrected] Minitest/GlobalExpectations: Use _(err.message) instead.
        err.message.must_match /has a locked Retention Policy which cannot be removed/
        ^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:45:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.custom_attrs) instead.
          notification.custom_attrs.must_equal custom_attrs
          ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:46:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.event_types) instead.
          notification.event_types.must_equal event_types
          ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:47:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.prefix) instead.
          notification.prefix.must_equal filename_prefix
          ^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:48:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.payload) instead.
          notification.payload.must_equal payload
          ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:49:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.topic) instead.
          notification.topic.must_equal topic_name_full_path
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:51:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.notifications) instead.
          bucket.notifications.wont_be :empty?
          ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:56:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.custom_attrs) instead.
          fresh_notification.custom_attrs.must_equal custom_attrs
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:57:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.event_types) instead.
          fresh_notification.event_types.must_equal event_types
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:58:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.prefix) instead.
          fresh_notification.prefix.must_equal filename_prefix
          ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:59:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.payload) instead.
          fresh_notification.payload.must_equal payload
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:60:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.topic) instead.
          fresh_notification.topic.must_equal topic_name_full_path
          ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:36:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.policy) instead.
          bucket.policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:40:7: C: [Corrected] Minitest/GlobalExpectations: Use _(service_account) instead.
          service_account.wont_be :nil?
          ^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:49:7: C: [Corrected] Minitest/GlobalExpectations: Use _(role_member.count) instead.
          role_member.count.must_equal 1
          ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:55:7: C: [Corrected] Minitest/GlobalExpectations: Use _(permissions) instead.
          permissions.must_equal roles
          ^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:68:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^
    acceptance/storage/bucket_policy_test.rb:69:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:70:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles.count) instead.
          policy.roles.count.must_equal 2
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:74:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^
    acceptance/storage/bucket_policy_test.rb:75:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:76:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.roles.count) instead.
          policy.roles.count.must_equal 2
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:80:9: C: [Corrected] Minitest/GlobalExpectations: Use _(p.version) instead.
            p.version.must_equal 1
            ^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:85:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy) instead.
          policy.must_be_kind_of Google::Cloud::Storage::PolicyV3
          ^^^^^^
    acceptance/storage/bucket_policy_test.rb:86:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 1
          ^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:88:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.count) instead.
          policy.bindings.count.must_equal 2
          ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:92:7: C: [Corrected] Minitest/GlobalExpectations: Use _(service_account) instead.
          service_account.wont_be :nil?
          ^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:116:9: C: [Corrected] Minitest/GlobalExpectations: Use _(p.version) instead.
            p.version.must_equal 1
            ^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:135:11: C: [Corrected] Minitest/GlobalExpectations: Use _(p.version) instead.
              p.version.must_equal 3
              ^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:144:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.version) instead.
          policy.version.must_equal 3
          ^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:147:7: C: [Corrected] Minitest/GlobalExpectations: Use _(policy.bindings.count) instead.
          policy.bindings.count.must_equal 3
          ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:151:7: C: [Corrected] Minitest/GlobalExpectations: Use _(binding) instead.
          binding.wont_be :nil?
          ^^^^^^^
    acceptance/storage/bucket_policy_test.rb:152:7: C: [Corrected] Minitest/GlobalExpectations: Use _(binding.role) instead.
          binding.role.must_equal role
          ^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:153:7: C: [Corrected] Minitest/GlobalExpectations: Use _(binding.members.count) instead.
          binding.members.count.must_equal 1
          ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:154:7: C: [Corrected] Minitest/GlobalExpectations: Use _(binding.members[0]) instead.
          binding.members[0].must_equal member
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:155:7: C: [Corrected] Minitest/GlobalExpectations: Use _(binding.condition) instead.
          binding.condition.wont_be :nil?
          ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:156:7: C: [Corrected] Minitest/GlobalExpectations: Use _(binding.condition.title) instead.
          binding.condition.title.must_equal "always-true"
          ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:157:7: C: [Corrected] Minitest/GlobalExpectations: Use _(binding.condition.description) instead.
          binding.condition.description.must_equal "test condition always-true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_policy_test.rb:158:7: C: [Corrected] Minitest/GlobalExpectations: Use _(binding.condition.expression) instead.
          binding.condition.expression.must_equal "true"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_post_object_v2_test.rb:40:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.file(file_name)) instead.
        bucket.file(file_name).must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_post_object_v2_test.rb:58:5: C: [Corrected] Minitest/GlobalExpectations: Use _(response.code) instead.
        response.code.must_equal "204"
        ^^^^^^^^^^^^^
    acceptance/storage/bucket_post_object_v2_test.rb:59:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.file(file_name)) instead.
        bucket.file(file_name).wont_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_post_object_v2_test.rb:67:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.file(data_file)) instead.
        bucket.file(data_file).must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_post_object_v2_test.rb:86:5: C: [Corrected] Minitest/GlobalExpectations: Use _(response.code) instead.
        response.code.must_equal "204"
        ^^^^^^^^^^^^^
    acceptance/storage/bucket_post_object_v2_test.rb:87:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.file(data_file)) instead.
        bucket.file(data_file).wont_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:79:5: C: [Corrected] Minitest/GlobalExpectations: Use _(e.message) instead.
        e.message.must_equal "required: Bucket is requester pays bucket but no user project provided."
        ^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:83:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.website_main) instead.
        bucket.website_main.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:88:5: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh.website_main) instead.
        fresh.website_main.must_equal "index.html"
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:94:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
          bucket.acl.readers.wont_include user_val
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:96:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.readers) instead.
          bucket.acl.readers.must_include user_val
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:100:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
          bucket.acl.writers.wont_include user_val
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:102:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.writers) instead.
          bucket.acl.writers.must_include user_val
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:106:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
          bucket.acl.owners.wont_include user_val
          ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:108:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.acl.owners) instead.
          bucket.acl.owners.must_include user_val
          ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:112:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
          bucket.default_acl.readers.wont_include user_val
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:114:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.readers) instead.
          bucket.default_acl.readers.must_include user_val
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:118:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
          bucket.default_acl.owners.wont_include user_val
          ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:120:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_acl.owners) instead.
          bucket.default_acl.owners.must_include user_val
          ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:138:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.custom_attrs) instead.
          notification.custom_attrs.must_equal custom_attrs
          ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:139:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.event_types) instead.
          notification.event_types.must_equal event_types
          ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:140:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.prefix) instead.
          notification.prefix.must_equal filename_prefix
          ^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:141:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.payload) instead.
          notification.payload.must_equal payload
          ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:142:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.topic) instead.
          notification.topic.must_equal topic_name_full_path
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:144:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.notifications) instead.
          bucket.notifications.wont_be :empty?
          ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:149:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.custom_attrs) instead.
          fresh_notification.custom_attrs.must_equal custom_attrs
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:150:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.event_types) instead.
          fresh_notification.event_types.must_equal event_types
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:151:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.prefix) instead.
          fresh_notification.prefix.must_equal filename_prefix
          ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:152:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.payload) instead.
          fresh_notification.payload.must_equal payload
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:153:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.topic) instead.
          fresh_notification.topic.must_equal topic_name_full_path
          ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:172:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors) instead.
        bucket.cors.wont_be :empty?
        ^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:173:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.origin) instead.
        bucket.cors.last.origin.must_equal ["http://example.org", "https://example.org"]
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:174:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.methods) instead.
        bucket.cors.last.methods.must_equal ["*"]
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:175:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.headers) instead.
        bucket.cors.last.headers.must_equal ["X-My-Custom-Header"]
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:176:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.max_age) instead.
        bucket.cors.last.max_age.must_equal 300
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:189:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.origin) instead.
        bucket.cors.last.origin.must_equal ["http://example.org", "https://example.org", "https://example.com"]
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:190:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.methods) instead.
        bucket.cors.last.methods.must_equal ["PUT"]
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:191:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.headers) instead.
        bucket.cors.last.headers.must_equal ["X-My-Custom-Header", "X-Another-Custom-Header"]
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:192:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.max_age) instead.
        bucket.cors.last.max_age.must_equal 600
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:203:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.policy) instead.
          bucket.policy.must_be_kind_of Google::Cloud::Storage::PolicyV1
          ^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:207:7: C: [Corrected] Minitest/GlobalExpectations: Use _(service_account) instead.
          service_account.wont_be :nil?
          ^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:214:7: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.policy.role(role)) instead.
          bucket.policy.role(role).must_include member
          ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:220:7: C: [Corrected] Minitest/GlobalExpectations: Use _(permissions) instead.
          permissions.must_equal roles
          ^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:234:5: C: [Corrected] Minitest/GlobalExpectations: Use _(uploaded.cache_control) instead.
        uploaded.cache_control.must_equal "public, max-age=3600"
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:235:5: C: [Corrected] Minitest/GlobalExpectations: Use _(uploaded.metadata["title"]) instead.
        uploaded.metadata["title"].must_equal "Logo Image"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:237:5: C: [Corrected] Minitest/GlobalExpectations: Use _(first_files) instead.
        first_files.wont_be :empty?
        ^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:238:5: C: [Corrected] Minitest/GlobalExpectations: Use _(first_files.next?) instead.
        first_files.next?.must_equal true
        ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:241:5: C: [Corrected] Minitest/GlobalExpectations: Use _(second_files) instead.
        second_files.wont_be :empty?
        ^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:244:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.file(uploaded.name)) instead.
        bucket.file(uploaded.name).wont_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:251:7: C: [Corrected] Minitest/GlobalExpectations: Use _(downloaded.size) instead.
          downloaded.size.must_equal original.size
          ^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:252:7: C: [Corrected] Minitest/GlobalExpectations: Use _(File.read(downloaded.path, mode: "rb")) instead.
          File.read(downloaded.path, mode: "rb").must_equal File.read(original.path, mode: "rb")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:261:5: C: [Corrected] Minitest/GlobalExpectations: Use _(uploaded.cache_control) instead.
        uploaded.cache_control.must_equal "private, max-age=0, no-cache"
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:262:5: C: [Corrected] Minitest/GlobalExpectations: Use _(uploaded.metadata["title"]) instead.
        uploaded.metadata["title"].must_equal "Logo Image II"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:274:5: C: [Corrected] Minitest/GlobalExpectations: Use _(uploaded.name) instead.
        uploaded.name.must_equal "CloudLogo"
        ^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:275:5: C: [Corrected] Minitest/GlobalExpectations: Use _(copied.name) instead.
        copied.name.must_equal "CloudLogoCopy"
        ^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:276:5: C: [Corrected] Minitest/GlobalExpectations: Use _(copied.size) instead.
        copied.size.must_equal uploaded.size
        ^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:284:9: C: [Corrected] Minitest/GlobalExpectations: Use _(downloaded1.size) instead.
            downloaded1.size.must_equal downloaded2.size
            ^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:286:9: C: [Corrected] Minitest/GlobalExpectations: Use _(File.read(downloaded1.path, mode: "rb")) instead.
            File.read(downloaded1.path, mode: "rb").must_equal File.read(downloaded2.path, mode: "rb")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:299:7: C: [Corrected] Minitest/GlobalExpectations: Use _(file.acl.readers) instead.
          file.acl.readers.must_include group_val
          ^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:301:7: C: [Corrected] Minitest/GlobalExpectations: Use _(file.acl.readers) instead.
          file.acl.readers.must_include group_val
          ^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:303:7: C: [Corrected] Minitest/GlobalExpectations: Use _(file.acl.readers) instead.
          file.acl.readers.must_include group_val
          ^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:305:7: C: [Corrected] Minitest/GlobalExpectations: Use _(file.acl.readers) instead.
          file.acl.readers.wont_include group_val
          ^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:32:5: C: [Corrected] Minitest/GlobalExpectations: Use _(storage.bucket(one_off_bucket_name)) instead.
        storage.bucket(one_off_bucket_name).must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:36:5: C: [Corrected] Minitest/GlobalExpectations: Use _(storage.bucket(one_off_bucket_name)) instead.
        storage.bucket(one_off_bucket_name).wont_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:38:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.storage_class) instead.
        one_off_bucket.storage_class.wont_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:39:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.website_main) instead.
        one_off_bucket.website_main.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:40:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.website_404) instead.
        one_off_bucket.website_404.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:41:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.requester_pays) instead.
        one_off_bucket.requester_pays.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:42:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.labels) instead.
        one_off_bucket.labels.must_equal({})
        ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:43:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.location_type) instead.
        one_off_bucket.location_type.must_equal "multi-region"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:44:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.user_project) instead.
        one_off_bucket.user_project.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:53:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.storage_class) instead.
        one_off_bucket.storage_class.must_equal "NEARLINE"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:54:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.website_main) instead.
        one_off_bucket.website_main.must_equal "index.html"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:55:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.website_404) instead.
        one_off_bucket.website_404.must_equal "not_found.html"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:56:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.requester_pays) instead.
        one_off_bucket.requester_pays.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:58:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.labels) instead.
        one_off_bucket.labels.must_equal({ "foo" => "bar" })
        ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:59:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket.location_type) instead.
        one_off_bucket.location_type.must_equal "multi-region"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:62:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket_copy) instead.
        one_off_bucket_copy.wont_be :nil?
        ^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:63:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket_copy.storage_class) instead.
        one_off_bucket_copy.storage_class.must_equal "NEARLINE"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:64:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket_copy.website_main) instead.
        one_off_bucket_copy.website_main.must_equal "index.html"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:65:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket_copy.website_404) instead.
        one_off_bucket_copy.website_404.must_equal "not_found.html"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:66:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket_copy.requester_pays) instead.
        one_off_bucket_copy.requester_pays.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:67:5: C: [Corrected] Minitest/GlobalExpectations: Use _(one_off_bucket_copy.user_project) instead.
        one_off_bucket_copy.user_project.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:72:5: C: [Corrected] Minitest/GlobalExpectations: Use _(storage.bucket(one_off_bucket_name)) instead.
        storage.bucket(one_off_bucket_name).must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:76:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.id) instead.
        bucket.id.must_be_kind_of String
        ^^^^^^^^^
    acceptance/storage/bucket_test.rb:77:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.name) instead.
        bucket.name.must_equal bucket_name
        ^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:78:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.created_at) instead.
        bucket.created_at.must_be_kind_of DateTime
        ^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:79:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.api_url) instead.
        bucket.api_url.must_equal "https://www.googleapis.com/storage/v1/b/#{bucket_name}"
        ^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:80:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.location) instead.
        bucket.location.must_be_kind_of String
        ^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:81:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.location_type) instead.
        bucket.location_type.must_equal "multi-region"
        ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:82:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.logging_bucket) instead.
        bucket.logging_bucket.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:83:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.logging_prefix) instead.
        bucket.logging_prefix.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:84:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.storage_class) instead.
        bucket.storage_class.must_equal "STANDARD"
        ^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:85:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.versioning?) instead.
        bucket.versioning?.wont_equal true
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:86:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.website_main) instead.
        bucket.website_main.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:87:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.website_404) instead.
        bucket.website_404.must_be :nil?
        ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:88:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.requester_pays) instead.
        bucket.requester_pays.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:89:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.labels) instead.
        bucket.labels.must_be :empty?
        ^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:91:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_period) instead.
        bucket.retention_period.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:92:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_effective_at) instead.
        bucket.retention_effective_at.must_be :nil?
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:93:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.retention_policy_locked?) instead.
        bucket.retention_policy_locked?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:94:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.default_event_based_hold?) instead.
        bucket.default_event_based_hold?.must_equal false
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:97:7: C: [Corrected] Minitest/GlobalExpectations: Use _(cors) instead.
          cors.must_be_kind_of Google::Cloud::Storage::Bucket::Cors::Rule
          ^^^^
    acceptance/storage/bucket_test.rb:98:7: C: [Corrected] Minitest/GlobalExpectations: Use _(cors.frozen?) instead.
          cors.frozen?.must_equal true
          ^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:100:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.frozen?) instead.
        bucket.cors.frozen?.must_equal true
        ^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:103:7: C: [Corrected] Minitest/GlobalExpectations: Use _(r) instead.
          r.must_be_kind_of Google::Cloud::Storage::Bucket::Lifecycle::Rule
          ^
    acceptance/storage/bucket_test.rb:104:7: C: [Corrected] Minitest/GlobalExpectations: Use _(r.frozen?) instead.
          r.frozen?.must_equal true
          ^^^^^^^^^
    acceptance/storage/bucket_test.rb:106:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.frozen?) instead.
        bucket.lifecycle.frozen?.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:117:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors) instead.
        bucket.cors.wont_be :empty?
        ^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:118:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.origin) instead.
        bucket.cors.last.origin.must_equal ["http://example.org", "https://example.org"]
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:119:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.methods) instead.
        bucket.cors.last.methods.must_equal ["*"]
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:120:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.headers) instead.
        bucket.cors.last.headers.must_equal ["X-My-Custom-Header"]
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:121:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.max_age) instead.
        bucket.cors.last.max_age.must_equal 300
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:134:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.origin) instead.
        bucket.cors.last.origin.must_equal ["http://example.org", "https://example.org", "https://example.com"]
        ^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:135:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.methods) instead.
        bucket.cors.last.methods.must_equal ["PUT"]
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:136:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.headers) instead.
        bucket.cors.last.headers.must_equal ["X-My-Custom-Header", "X-Another-Custom-Header"]
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:137:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.cors.last.max_age) instead.
        bucket.cors.last.max_age.must_equal 600
        ^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:153:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle) instead.
        bucket.lifecycle.wont_be :empty?
        ^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:154:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.count) instead.
        bucket.lifecycle.count.must_equal original_count + 1
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:155:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.last.action) instead.
        bucket.lifecycle.last.action.must_equal "SetStorageClass"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:156:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.last.storage_class) instead.
        bucket.lifecycle.last.storage_class.must_equal "NEARLINE"
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:157:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.last.age) instead.
        bucket.lifecycle.last.age.must_equal 10
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:158:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.last.created_before) instead.
        bucket.lifecycle.last.created_before.must_equal Date.parse("2013-01-15")
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:159:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.last.is_live) instead.
        bucket.lifecycle.last.is_live.must_equal true
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:160:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.last.matches_storage_class) instead.
        bucket.lifecycle.last.matches_storage_class.must_equal ["STANDARD"]
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:161:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.last.num_newer_versions) instead.
        bucket.lifecycle.last.num_newer_versions.must_equal 3
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:176:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle) instead.
        bucket.lifecycle.wont_be :empty?
        ^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:177:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.count) instead.
        bucket.lifecycle.count.must_equal original_count + 1
        ^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_test.rb:178:5: C: [Corrected] Minitest/GlobalExpectations: Use _(bucket.lifecycle.last.action) inst…
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    90e7dc5 View commit details
    Browse the repository at this point in the history
  12. Replace must_be_kind_of File with must_be_kind_of Tempfile in acc…

    …eptance/storage/file_test.rb
    
    * Addressed this failure:
    
    ```
    % bundle exec rake acceptance
    
    ... snip ...
      5) Failure:
    Google::Cloud::Storage::File::storage#test_0006_should upload and download a file without specifying path [/Users/yahonda/src/github.com/googleapis/google-cloud-ruby/google-cloud-storage/acceptance/storage/file_test.rb:256]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200410-4981-hqqcsw.png> to be a kind of File, not Tempfile.
    ```
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    51025e4 View commit details
    Browse the repository at this point in the history
  13. Replace must_be_kind_of File with must_be_kind_of Tempfile in acc…

    …eptance/storage/file_test.rb
    
    * Addressed this failure:
    
    ```
    % bundle exec rake acceptance
        ... snip ...
    
      1) Failure:
    Google::Cloud::Storage::File::storage#test_0006_should upload and download a file without specifying path [/Users/yahonda/src/github.com/googleapis/google-cloud-ruby/google-cloud-storage/acceptance/storage/file_test.rb:256]:
    Expected #<Tempfile:/var/folders/4d/1hfsdkkj2772brj5d70vtbm40000gn/T/google-cloud20200412-8619-1svhgv5.png> to be a kind of File, not Tempfile.
    ```
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    c7775aa View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d78c9e0 View commit details
    Browse the repository at this point in the history
  15. Auto correct wont_be_nil and must_be_nil fixed by rubocop/rubocop…

    …-minitest#76
    
    ```
    % bundle exec rubocop --only Minitest/GlobalExpectations -a
    Inspecting 98 files
    ......C..C.....C..................................................................................
    
    Offenses:
    
    acceptance/storage/bucket_notification_test.rb:43:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification) instead.
          notification.wont_be_nil
          ^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:44:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.id) instead.
          notification.id.wont_be_nil
          ^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:54:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification) instead.
          fresh_notification.wont_be_nil
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_notification_test.rb:55:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.id) instead.
          fresh_notification.id.wont_be_nil
          ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:136:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification) instead.
          notification.wont_be_nil
          ^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:137:7: C: [Corrected] Minitest/GlobalExpectations: Use _(notification.id) instead.
          notification.id.wont_be_nil
          ^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:147:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification) instead.
          fresh_notification.wont_be_nil
          ^^^^^^^^^^^^^^^^^^
    acceptance/storage/bucket_requester_pays_test.rb:148:7: C: [Corrected] Minitest/GlobalExpectations: Use _(fresh_notification.id) instead.
          fresh_notification.id.wont_be_nil
          ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/file_test.rb:317:5: C: [Corrected] Minitest/GlobalExpectations: Use _(uploaded.content_encoding) instead.
        uploaded.content_encoding.must_be_nil
        ^^^^^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/file_test.rb:377:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.content_encoding) instead.
        file.content_encoding.must_be_nil # metadata not loaded
        ^^^^^^^^^^^^^^^^^^^^^
    acceptance/storage/file_test.rb:378:5: C: [Corrected] Minitest/GlobalExpectations: Use _(file.content_type) instead.
        file.content_type.must_be_nil # metadata not loaded
        ^^^^^^^^^^^^^^^^^
    
    98 files inspected, 11 offenses detected, 11 offenses corrected
    %
    ```
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    4806614 View commit details
    Browse the repository at this point in the history
  16. Revert "Allow rubocop-minitest to auto-correct global expectation war…

    …nings"
    
    This reverts commit 91a6905cad91a8df70881d2638d3b779fb434676.
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    01beed6 View commit details
    Browse the repository at this point in the history
  17. Revert "Allow rubocop-minitest to auto-correct acceptance test files"

    This reverts commit 625890a765fd59fcbaa7973232c59c08301f231e.
    yahonda committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    76a1157 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2020

  1. Revert "Use rubocop/rubocop-minitest#76 temporarily"

    This reverts commit d78c9e0.
    yahonda committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    c860359 View commit details
    Browse the repository at this point in the history
  2. Revert "Use rubocop/rubocop-minitest#74 temporarily"

    This reverts commit 56c8c29.
    yahonda committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    394c897 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2020

  1. Revert "Use rubocop-minitest 0.8.0"

    This reverts commit 8562519.
    yahonda committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    70b60ae View commit details
    Browse the repository at this point in the history