diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 8f62c2e..93032ea 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -27,7 +27,7 @@ jobs: # | 6.1 | | | 2.5 | | # | 7.0 | | | 2.7 | | # | 7.1 | | | 2.7 | | - ruby: ['3.0', '3.1', '3.2'] + ruby: ['3.0', '3.1', '3.2', '3.3'] gemfile: ['gemfiles/rails_6.1.gemfile', 'gemfiles/rails_7.0.gemfile', 'gemfiles/rails_7.1.gemfile'] include: - ruby: '2.4' diff --git a/spec/active_hash/base_spec.rb b/spec/active_hash/base_spec.rb index 8a9a426..f4a4c34 100644 --- a/spec/active_hash/base_spec.rb +++ b/spec/active_hash/base_spec.rb @@ -928,7 +928,7 @@ class Region < ActiveHash::Base it "raises a NoMethodError" do expect { Country.find_by_name_and_shoe_size("US", 10) - }.to raise_error(NoMethodError, /undefined method `find_by_name_and_shoe_size' (?:for|on) Country/) + }.to raise_error(NoMethodError, /undefined method `find_by_name_and_shoe_size' (?:for|on) (class )?Country/) end end end @@ -957,7 +957,7 @@ class Region < ActiveHash::Base it "raises a NoMethodError" do expect { Country.find_by_name_and_shoe_size!("US", 10) - }.to raise_error(NoMethodError, /undefined method `find_by_name_and_shoe_size!' (?:for|on) Country/) + }.to raise_error(NoMethodError, /undefined method `find_by_name_and_shoe_size!' (?:for|on) (class )?Country/) end end end @@ -1181,7 +1181,7 @@ class Region < ActiveHash::Base it "doesn't blow up if you call a missing dynamic finder when fields haven't been set" do expect do Country.find_by_name("Foo") - end.to raise_error(NoMethodError, /undefined method `find_by_name' (?:for|on) Country/) + end.to raise_error(NoMethodError, /undefined method `find_by_name' (?:for|on) (class )?Country/) end end