spec/spec_helper.rb in demoji-0.0.5 vs spec/spec_helper.rb in demoji-0.0.6

- old
+ new

@@ -19,10 +19,13 @@ config.before(:suite) do db_config = YAML.load_file(File.join(APP_DIR, 'spec', 'config', 'database.yml'))[ENV['RACK_ENV']] ActiveRecord::Base.establish_connection db_config 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;") + ActiveRecord::Base.connection.execute( + "CREATE TABLE IF NOT EXISTS `test_users` (`id` int(11) NOT NULL AUTO_INCREMENT, " \ + "`name` varchar(255) NOT NULL, `cart` blob, PRIMARY KEY (`id`)) DEFAULT CHARSET=utf8;" + ) end config.before(:each) do ActiveRecord::Base.connection.execute("TRUNCATE TABLE `test_users`") end