1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

Fix mongoid specs by adding require in mongoid specs (#786)

* Try to fix mongoid specs by adding require in mongoid specs

* Disable truffleruby for rails 6.1
This commit is contained in:
Anil Kumar Maurya 2022-07-22 19:46:23 +05:30 committed by GitHub
parent 5c90119501
commit 7a351ecd8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -56,6 +56,8 @@ jobs:
gemfile: rails_4.2_mongoid_5 gemfile: rails_4.2_mongoid_5
- ruby: truffleruby - ruby: truffleruby
gemfile: rails_5.2 gemfile: rails_5.2
- ruby: truffleruby
gemfile: rails_6.1
allow_failures: allow_failures:
- false - false
env: env:

View file

@ -2,6 +2,7 @@
begin begin
require 'mongoid' require 'mongoid'
require 'rails'
puts "mongoid #{Mongoid::VERSION} gem found, running mongoid specs \e[32m#{'✔'}\e[0m" puts "mongoid #{Mongoid::VERSION} gem found, running mongoid specs \e[32m#{'✔'}\e[0m"
if Mongoid::VERSION.to_f <= 5 if Mongoid::VERSION.to_f <= 5