test/test_error.rb in swift-0.7.2 vs test/test_error.rb in swift-0.8.0
- old
+ new
@@ -1,13 +1,13 @@
require_relative 'helper'
describe 'Error' do
- supported_by Swift::DB::Postgres, Swift::DB::Mysql do
+ supported_by Swift::DB::Postgres, Swift::DB::Mysql, Swift::DB::Sqlite3 do
describe 'prepare' do
before do
Swift.db do |db|
db.execute %q{drop table if exists users}
- db.execute %q{create table users(id serial, name text, primary key(id))}
+ db.execute %q{create table users(id integer, name text, primary key(id))}
end
end
it 'throws a runtime error on invalid sql' do
assert_raises(SwiftRuntimeError) do