mirror of
				https://github.com/DatabaseCleaner/database_cleaner
				synced 2023-03-27 23:22:03 -04:00 
			
		
		
		
	add cucumber scenario for sequel
This commit is contained in:
		
							parent
							
								
									f7c32e62e9
								
							
						
					
					
						commit
						7d4d8868f6
					
				
					 3 changed files with 13 additions and 1 deletions
				
			
		
							
								
								
									
										9
									
								
								examples/lib/sequel_models.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								examples/lib/sequel_models.rb
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
require 'sequel'
 | 
			
		||||
 | 
			
		||||
db = Sequel.sqlite # memory database
 | 
			
		||||
 | 
			
		||||
db.run 'DROP TABLE IF EXISTS "sequel_widgets"'
 | 
			
		||||
 | 
			
		||||
db.create_table :sequel_widgets do
 | 
			
		||||
  String :name
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			@ -17,6 +17,9 @@ Feature: database cleaning
 | 
			
		|||
    | ActiveRecord | deletion    |
 | 
			
		||||
    | DataMapper   | transaction |
 | 
			
		||||
    | DataMapper   | truncation  |
 | 
			
		||||
    | Sequel       | transaction |
 | 
			
		||||
    | Sequel       | truncation  |
 | 
			
		||||
    | Sequel       | deletion    |
 | 
			
		||||
    | MongoMapper  | truncation  |
 | 
			
		||||
    | Mongoid      | truncation  |
 | 
			
		||||
    | CouchPotato  | truncation  |
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
orms_pattern = /(ActiveRecord|DataMapper|MongoMapper|Mongoid|CouchPotato|Redis|Ohm|Neo4j)/
 | 
			
		||||
orms_pattern = /(ActiveRecord|DataMapper|Sequel|MongoMapper|Mongoid|CouchPotato|Redis|Ohm|Neo4j)/
 | 
			
		||||
 | 
			
		||||
Given /^I am using #{orms_pattern}$/ do |orm|
 | 
			
		||||
  @feature_runner = FeatureRunner.new
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue