test/test_transactions.rb in swift-0.9.1 vs test/test_transactions.rb in swift-0.10.0

- old
+ new

@@ -23,9 +23,13 @@ @db.transaction :sweet do |db| assert_kind_of Swift::Adapter, db end end + it 'should return result from block' do + assert_equal :foobar, @db.transaction {|db| foobar = 1; foobar = :foobar } + end + describe 'commits work' do before do @db.execute('delete from users') end