Skip to content

Commit

Permalink
add cucumber scenario for sequel
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Dec 22, 2014
1 parent f7c32e6 commit 7d4d886
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions examples/lib/sequel_models.rb
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions features/cleaning.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion features/step_definitions/database_cleaner_steps.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7d4d886

Please sign in to comment.