Skip to content

Commit

Permalink
chore: skip activerecord specs on mongoid
Browse files Browse the repository at this point in the history
  • Loading branch information
markokajzer committed Dec 1, 2024
1 parent e0fb9d2 commit 71055b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/slack-ruby-bot-server/app_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 71055b9

Please sign in to comment.