Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (18 sloc) 446 Bytes
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'sequel'
require 'sequel_sluggable'
require 'spec'
require 'spec/autorun'
# Create model to test on
DB = Sequel.sqlite
DB.create_table :items do
primary_key :id
String :name
String :slug
String :sluggie
end
class Item < Sequel::Model; end
Spec::Runner.configure do |config|
config.after(:each) { Item.delete }
end