Skip to content

Commit 71055b9

Browse files
committed
chore: skip activerecord specs on mongoid
1 parent e0fb9d2 commit 71055b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/slack-ruby-bot-server/app_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
context 'when connection cannot be established' do
1818
context 'with ActiveRecord >= 7.2' do
1919
before do
20+
skip 'incorrect database adapter' unless ENV['DATABASE_ADAPTER'] == 'activerecord'
2021
skip 'incorrect ActiveRecord version' if ActiveRecord.version < Gem::Version.new('7.2')
2122

2223
# Make sure ActiveRecord is not connected in any way before the spec starts
@@ -35,6 +36,7 @@
3536

3637
context 'with ActiveRecord < 7.2' do
3738
before do
39+
skip 'incorrect database adapter' unless ENV['DATABASE_ADAPTER'] == 'activerecord'
3840
skip 'incorrect ActiveRecord version' if ActiveRecord.version >= Gem::Version.new('7.2')
3941
end
4042

0 commit comments

Comments
 (0)