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:
		
							parent
							
								
									5c90119501
								
							
						
					
					
						commit
						7a351ecd8a
					
				
					 2 changed files with 3 additions and 0 deletions
				
			
		
							
								
								
									
										2
									
								
								.github/workflows/build.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/build.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -56,6 +56,8 @@ jobs:
 | 
			
		|||
          gemfile: rails_4.2_mongoid_5
 | 
			
		||||
        - ruby: truffleruby
 | 
			
		||||
          gemfile: rails_5.2
 | 
			
		||||
        - ruby: truffleruby
 | 
			
		||||
          gemfile: rails_6.1
 | 
			
		||||
        allow_failures:
 | 
			
		||||
          - false
 | 
			
		||||
    env:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
begin
 | 
			
		||||
  require 'mongoid'
 | 
			
		||||
  require 'rails'
 | 
			
		||||
  puts "mongoid #{Mongoid::VERSION} gem found, running mongoid specs \e[32m#{'✔'}\e[0m"
 | 
			
		||||
 | 
			
		||||
  if Mongoid::VERSION.to_f <= 5
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue