spec/spec_helper.rb in demoji-0.0.3 vs spec/spec_helper.rb in demoji-0.0.4
- old
+ new
@@ -23,9 +23,9 @@
ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS `test_users`")
ActiveRecord::Base.connection.execute("CREATE TABLE IF NOT EXISTS `test_users` (`id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, PRIMARY KEY (`id`)) DEFAULT CHARSET=utf8;")
end
config.before(:each) do
-
+ ActiveRecord::Base.connection.execute("TRUNCATE TABLE `test_users`")
end
end