mirror of
				https://github.com/awesome-print/awesome_print
				synced 2023-03-27 23:22:34 -04:00 
			
		
		
		
	Adds further Appraisals for mongoid, mongo_mapper and ripple. Fixes mongoid specs and Ripple
This commit is contained in:
		
							parent
							
								
									eff2239e37
								
							
						
					
					
						commit
						e3a9a3d638
					
				
					 14 changed files with 133 additions and 43 deletions
				
			
		
							
								
								
									
										22
									
								
								spec/support/mongoid_versions.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								spec/support/mongoid_versions.rb
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
module MongoidVersions
 | 
			
		||||
  def mongoid_version
 | 
			
		||||
    Gem::Version.new(Mongoid::VERSION)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def mongoid_4_0?
 | 
			
		||||
    Gem::Requirement.new('~> 4.0.0').satisfied_by?(mongoid_version)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def mongoid_3_0?
 | 
			
		||||
    Gem::Requirement.new('~> 3.0.0').satisfied_by?(mongoid_version)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def mongoid_3_1?
 | 
			
		||||
    Gem::Requirement.new('~> 3.1.0').satisfied_by?(mongoid_version)
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
RSpec.configure do |config|
 | 
			
		||||
  config.include(MongoidVersions)
 | 
			
		||||
  config.extend(MongoidVersions)
 | 
			
		||||
end
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue