add cucumber scenario for sequel
This commit is contained in:
parent
f7c32e62e9
commit
7d4d8868f6
|
@ -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 |
|
| ActiveRecord | deletion |
|
||||||
| DataMapper | transaction |
|
| DataMapper | transaction |
|
||||||
| DataMapper | truncation |
|
| DataMapper | truncation |
|
||||||
|
| Sequel | transaction |
|
||||||
|
| Sequel | truncation |
|
||||||
|
| Sequel | deletion |
|
||||||
| MongoMapper | truncation |
|
| MongoMapper | truncation |
|
||||||
| Mongoid | truncation |
|
| Mongoid | truncation |
|
||||||
| CouchPotato | 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|
|
Given /^I am using #{orms_pattern}$/ do |orm|
|
||||||
@feature_runner = FeatureRunner.new
|
@feature_runner = FeatureRunner.new
|
||||||
|
|
Loading…
Reference in New Issue