test/test_adapter.rb in swift-0.11.0 vs test/test_adapter.rb in swift-0.12.0

- old
+ new

@@ -45,9 +45,15 @@ it 'executes without bind values' do assert @db.prepare(%q{insert into users (name) values ('Apple Arthurton')}).execute end + it 'returns the command' do + sql = 'select * from users where id = ?' + assert_equal sql, @db.prepare(sql).command + assert_equal sql, @db.prepare(sql).to_s + end + it 'executes with bind values' do assert @db.prepare(%q{insert into users (name) values (?)}).execute('Apple Arthurton') end it 'executes multiple times' do