diff options
Diffstat (limited to 'spec/models/application_record_spec.rb')
-rw-r--r-- | spec/models/application_record_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/application_record_spec.rb b/spec/models/application_record_spec.rb index c1cd44e9007..ee3065cf8f2 100644 --- a/spec/models/application_record_spec.rb +++ b/spec/models/application_record_spec.rb @@ -106,12 +106,12 @@ RSpec.describe ApplicationRecord do describe '.where_not_exists' do it 'produces a WHERE NOT EXISTS query' do - create(:user, :two_factor_via_u2f) + create(:user, :two_factor_via_webauthn) user_2 = create(:user) expect( User.where_not_exists( - U2fRegistration.where(U2fRegistration.arel_table[:user_id].eq(User.arel_table[:id]))) + WebauthnRegistration.where(WebauthnRegistration.arel_table[:user_id].eq(User.arel_table[:id]))) ).to match_array([user_2]) end end @@ -258,7 +258,7 @@ RSpec.describe ApplicationRecord do before do ApplicationRecord.connection.execute(<<~SQL) - create table tests ( + create table _test_tests ( id bigserial primary key not null, ignore_me text ) @@ -267,7 +267,7 @@ RSpec.describe ApplicationRecord do context 'without an ignored column' do let(:test_model) do Class.new(ApplicationRecord) do - self.table_name = 'tests' + self.table_name = :_test_tests end end @@ -278,7 +278,7 @@ RSpec.describe ApplicationRecord do let(:test_model) do Class.new(ApplicationRecord) do include IgnorableColumns - self.table_name = 'tests' + self.table_name = :_test_tests ignore_columns :ignore_me, remove_after: '2100-01-01', remove_with: '99.12' end |