Skip to content

Commit b1b6457

Browse files
committed
Remove OLD_RAILS and NEW_RAILS constants
Also removes legacy ActiveJob test setup. This should be safe since we do not support Rails versions older than 6 anyway.
1 parent 4ef2fe2 commit b1b6457

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

spec/spec_helper.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
# Required for serializing objects similar to production environments
3737
GlobalID.app = 'meilisearch-test'
3838

39-
OLD_RAILS = Gem.loaded_specs['rails'].version < Gem::Version.new('4.0')
40-
NEW_RAILS = Gem.loaded_specs['rails'].version >= Gem::Version.new('6.0')
41-
4239
Dir["#{File.dirname(__FILE__)}/support/*.rb"].each { |file| require file }
4340

4441
RSpec.configure do |c|

spec/support/active_record_schema.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717

1818
FileUtils.rm('data.sqlite3') if File.exist?('data.sqlite3')
1919

20-
unless OLD_RAILS || NEW_RAILS
21-
require 'active_job/test_helper'
22-
23-
ActiveJob::Base.queue_adapter = :test
24-
end
25-
2620
def ar_schema
2721
@ar_schema ||= ActiveRecord::Schema.new
2822
end

0 commit comments

Comments
 (0)