diff -Nur a/spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb b/spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb --- a/spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb 2022-03-02 19:06:24.099019714 +0800 +++ b/spec/unit/shoulda/matchers/active_record/have_db_index_matcher_spec.rb 2022-03-02 19:25:43.998524568 +0800 @@ -79,7 +79,7 @@ def with_index_on(column_name, index_options = {}) create_table 'employees' do |table| table.integer column_name - end.add_index(:employees, column_name, index_options) + end.add_index(:employees, column_name, **index_options) define_model_class('Employee').new end end