add cucumber scenario for sequel

This commit is contained in:
Jon Rowe 2014-12-22 20:27:53 +11:00
parent f7c32e62e9
commit 7d4d8868f6
3 changed files with 13 additions and 1 deletions

View 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

View file

@ -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 |

View file

@ -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