diff --git a/examples/lib/sequel_models.rb b/examples/lib/sequel_models.rb new file mode 100644 index 0000000..bd7a279 --- /dev/null +++ b/examples/lib/sequel_models.rb @@ -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 diff --git a/features/cleaning.feature b/features/cleaning.feature index a3613d9..8e5f80c 100644 --- a/features/cleaning.feature +++ b/features/cleaning.feature @@ -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 | diff --git a/features/step_definitions/database_cleaner_steps.rb b/features/step_definitions/database_cleaner_steps.rb index f561079..96f0cd2 100644 --- a/features/step_definitions/database_cleaner_steps.rb +++ b/features/step_definitions/database_cleaner_steps.rb @@ -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