From 71055b9b74257a65c3e62e10c4ba84aa55006ccc Mon Sep 17 00:00:00 2001 From: markokajzer Date: Sun, 1 Dec 2024 19:39:25 +0100 Subject: [PATCH] chore: skip activerecord specs on mongoid --- spec/slack-ruby-bot-server/app_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/slack-ruby-bot-server/app_spec.rb b/spec/slack-ruby-bot-server/app_spec.rb index d80a98d..901b890 100644 --- a/spec/slack-ruby-bot-server/app_spec.rb +++ b/spec/slack-ruby-bot-server/app_spec.rb @@ -17,6 +17,7 @@ context 'when connection cannot be established' do context 'with ActiveRecord >= 7.2' do before do + skip 'incorrect database adapter' unless ENV['DATABASE_ADAPTER'] == 'activerecord' skip 'incorrect ActiveRecord version' if ActiveRecord.version < Gem::Version.new('7.2') # Make sure ActiveRecord is not connected in any way before the spec starts @@ -35,6 +36,7 @@ context 'with ActiveRecord < 7.2' do before do + skip 'incorrect database adapter' unless ENV['DATABASE_ADAPTER'] == 'activerecord' skip 'incorrect ActiveRecord version' if ActiveRecord.version >= Gem::Version.new('7.2') end